@Override @SuppressWarnings("rawtypes") // Because Aries Blueprint cannot handle generics public void setColumnGenerators(final Map generators) { super.setColumnGenerators(generators); for (final Object key : generators.keySet()) { // If any of the column generators are {@link CheckboxGenerator} instances, // then connect it to the buttons. try { Object generatorObj = generators.get(key); CheckboxGenerator generator = (CheckboxGenerator) generatorObj; m_submitButton.setCheckboxGenerator(generator); m_selectAllButton.setCheckboxGenerator(generator); m_resetButton.setCheckboxGenerator(generator); m_itemSetChangeListeners.add(generator); } catch (final ClassCastException e) {} } }
public CheckboxButton(String string) { super(string); setColumnCollapsingAllowed(false); addClickListener(new ClickListener() {
public CheckboxButton(String string) { super(string); setColumnCollapsingAllowed(false); addClickListener(new ClickListener() {
/** * Leave OnmsVaadinContainer without generics; the Aries blueprint code cannot match up * the arguments if you put the generic types in. */ public AlarmTable(final String caption, final OnmsVaadinContainer container, final AlarmRepository alarmRepo) { super(caption, container); m_alarmRepo = alarmRepo; m_ackCombo = new NativeSelect(); m_ackCombo.setNullSelectionAllowed(false); m_ackCombo.addItem(ACTION_ACKNOWLEDGE); m_ackCombo.addItem(ACTION_UNACKNOWLEDGE); m_ackCombo.addItem(ACTION_ESCALATE); m_ackCombo.addItem(ACTION_CLEAR); m_ackCombo.setValue(ACTION_ACKNOWLEDGE); // Make "Acknowledge" the default value m_submitButton = new CheckboxButton("Submit"); m_submitButton.setCombo(m_ackCombo); }
@Override @SuppressWarnings("rawtypes") // Because Aries Blueprint cannot handle generics public void setColumnGenerators(final Map generators) { super.setColumnGenerators(generators); for (final Object key : generators.keySet()) { // If any of the column generators are {@link CheckboxGenerator} instances, // then connect it to the buttons. try { Object generatorObj = generators.get(key); CheckboxGenerator generator = (CheckboxGenerator) generatorObj; m_submitButton.setCheckboxGenerator(generator); m_selectAllButton.setCheckboxGenerator(generator); m_resetButton.setCheckboxGenerator(generator); m_itemSetChangeListeners.add(generator); } catch (final ClassCastException e) {} } }
/** * Leave OnmsVaadinContainer without generics; the Aries blueprint code cannot match up * the arguments if you put the generic types in. */ public AlarmTable(final String caption, final OnmsVaadinContainer container, final AlarmRepository alarmRepo) { super(caption, container); m_alarmRepo = alarmRepo; m_ackCombo = new NativeSelect(); m_ackCombo.setNullSelectionAllowed(false); m_ackCombo.addItem(ACTION_ACKNOWLEDGE); m_ackCombo.addItem(ACTION_UNACKNOWLEDGE); m_ackCombo.addItem(ACTION_ESCALATE); m_ackCombo.addItem(ACTION_CLEAR); m_ackCombo.setValue(ACTION_ACKNOWLEDGE); // Make "Acknowledge" the default value m_submitButton = new CheckboxButton("Submit"); m_submitButton.setCombo(m_ackCombo); }