/** * Sets the selected state of a toggle action. If the id doesn't * correspond to a toggle action then it will fail silently. * * @param id the value of the action id * @param selected true if the action is to be selected; otherwise false. */ public void setSelected(Object id, boolean selected) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { action.setSelected(selected); } }
/** * Sets the selected state of a toggle action. If the id doesn't * correspond to a toggle action then it will fail silently. * * @param id the value of the action id * @param selected true if the action is to be selected; otherwise false. */ public void setSelected(Object id, boolean selected) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { action.setSelected(selected); } }
/** * Sets the selected state of a toggle action. If the id doesn't * correspond to a toggle action then it will fail silently. * * @param id the value of the action id * @param selected true if the action is to be selected; otherwise false. */ public void setSelected(Object id, boolean selected) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { action.setSelected(selected); } }
/** * Sets the selected state of a toggle action. If the id doesn't * correspond to a toggle action then it will fail silently. * * @param id the value of the action id * @param selected true if the action is to be selected; otherwise false. */ public void setSelected(Object id, boolean selected) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { action.setSelected(selected); } }
/** * Callback method as <code>ItemListener</code>. Updates internal state based * on the given ItemEvent. <p> * * Here: synchs selected property if isStateAction(), does nothing otherwise. * * @param e the ItemEvent fired by a ItemSelectable on changing the selected * state. */ public void itemStateChanged(ItemEvent e) { if (isStateAction()) { setSelected(ItemEvent.SELECTED == e.getStateChange()); } }
/** * Callback method as <code>ItemListener</code>. Updates internal state based * on the given ItemEvent. <p> * * Here: synchs selected property if isStateAction(), does nothing otherwise. * * @param e the ItemEvent fired by a ItemSelectable on changing the selected * state. */ @Override public void itemStateChanged(ItemEvent e) { if (isStateAction()) { setSelected(ItemEvent.SELECTED == e.getStateChange()); } } }
/** * Callback method as <code>ItemListener</code>. Updates internal state based * on the given ItemEvent. <p> * * Here: synchs selected property if isStateAction(), does nothing otherwise. * * @param e the ItemEvent fired by a ItemSelectable on changing the selected * state. */ @Override public void itemStateChanged(ItemEvent e) { if (isStateAction()) { setSelected(ItemEvent.SELECTED == e.getStateChange()); } } }
/** * Callback method as <code>ItemListener</code>. Updates internal state based * on the given ItemEvent. <p> * * Here: synchs selected property if isStateAction(), does nothing otherwise. * * @param e the ItemEvent fired by a ItemSelectable on changing the selected * state. */ @Override public void itemStateChanged(ItemEvent e) { if (isStateAction()) { setSelected(ItemEvent.SELECTED == e.getStateChange()); } } }
@Override public void propertyChange(PropertyChangeEvent evt) { String property = evt.getPropertyName(); if ("pattern".equals(property)) { refreshPatternFromModel(); } else if ("rawText".equals(property)) { refreshDocumentFromModel(); } else if ("caseSensitive".equals(property)){ getAction(PatternModel.MATCH_CASE_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("wrapping".equals(property)) { getAction(PatternModel.MATCH_WRAP_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("backwards".equals(property)) { getAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("incremental".equals(property)) { getAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("empty".equals(property)) { refreshEmptyFromModel(); } }
@Override public synchronized void setSelected(boolean newValue) { super.setSelected(newValue); if (canControlColumn()) { ((TableColumnExt) column).setVisible(newValue); } }
@Override public synchronized void setSelected(boolean newValue) { super.setSelected(newValue); if (canControlColumn()) { if (!fromColumn) ((TableColumnExt) column).setVisible(newValue); } }
@Override public void propertyChange(PropertyChangeEvent evt) { String property = evt.getPropertyName(); if ("pattern".equals(property)) { refreshPatternFromModel(); } else if ("rawText".equals(property)) { refreshDocumentFromModel(); } else if ("caseSensitive".equals(property)){ getAction(PatternModel.MATCH_CASE_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("wrapping".equals(property)) { getAction(PatternModel.MATCH_WRAP_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("backwards".equals(property)) { getAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("incremental".equals(property)) { getAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("empty".equals(property)) { refreshEmptyFromModel(); } }
@Override public void propertyChange(PropertyChangeEvent evt) { String property = evt.getPropertyName(); if ("pattern".equals(property)) { refreshPatternFromModel(); } else if ("rawText".equals(property)) { refreshDocumentFromModel(); } else if ("caseSensitive".equals(property)){ getAction(PatternModel.MATCH_CASE_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("wrapping".equals(property)) { getAction(PatternModel.MATCH_WRAP_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("backwards".equals(property)) { getAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("incremental".equals(property)) { getAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("empty".equals(property)) { refreshEmptyFromModel(); } }
@Override public void propertyChange(PropertyChangeEvent evt) { String property = evt.getPropertyName(); if ("pattern".equals(property)) { refreshPatternFromModel(); } else if ("rawText".equals(property)) { refreshDocumentFromModel(); } else if ("caseSensitive".equals(property)){ getAction(PatternModel.MATCH_CASE_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("wrapping".equals(property)) { getAction(PatternModel.MATCH_WRAP_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("backwards".equals(property)) { getAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("incremental".equals(property)) { getAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("empty".equals(property)) { refreshEmptyFromModel(); } }
public void propertyChange(PropertyChangeEvent evt) { String property = evt.getPropertyName(); if ("pattern".equals(property)) { refreshPatternFromModel(); } else if ("rawText".equals(property)) { refreshDocumentFromModel(); } else if ("caseSensitive".equals(property)){ getAction(PatternModel.MATCH_CASE_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("wrapping".equals(property)) { getAction(PatternModel.MATCH_WRAP_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("backwards".equals(property)) { getAction(PatternModel.MATCH_BACKWARDS_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("incremental".equals(property)) { getAction(PatternModel.MATCH_INCREMENTAL_ACTION_COMMAND). setSelected(((Boolean) evt.getNewValue()).booleanValue()); } else if ("empty".equals(property)) { refreshEmptyFromModel(); } }
@Override public synchronized void setSelected(boolean newValue) { super.setSelected(newValue); if (canControlColumn()) { if (!fromColumn) ((TableColumnExt) column).setVisible(newValue); } }
@Override public synchronized void setSelected(boolean newValue) { super.setSelected(newValue); if (canControlColumn()) { if (!fromColumn) ((TableColumnExt) column).setVisible(newValue); } }
@Override public synchronized void setSelected(boolean newValue) { super.setSelected(newValue); if (canControlColumn()) { if (!fromColumn) ((TableColumnExt) column).setVisible(newValue); } }