/** * Determines if the Action corresponding to the action id is a state changed * action (toggle, group type action). * * @param id value of the action id * @return true if the action id represents a multi state action; false otherwise */ public boolean isStateAction(Object id) { Action action = getAction(id); if (action != null && action instanceof AbstractActionExt) { return ((AbstractActionExt)action).isStateAction(); } return false; }
/** * Determines if the Action corresponding to the action id is a state changed * action (toggle, group type action). * * @param id value of the action id * @return true if the action id represents a multi state action; false otherwise */ public boolean isStateAction(Object id) { Action action = getAction(id); if (action != null && action instanceof AbstractActionExt) { return ((AbstractActionExt)action).isStateAction(); } return false; }
/** * Determines if the Action corresponding to the action id is a state changed * action (toggle, group type action). * * @param id value of the action id * @return true if the action id represents a multi state action; false otherwise */ public boolean isStateAction(Object id) { Action action = getAction(id); if (action != null && action instanceof AbstractActionExt) { return ((AbstractActionExt)action).isStateAction(); } return false; }
/** * Convenience method for returning the StateChangeAction * * @param id value of the action id * @return the StateChangeAction referenced by the named id or null */ private AbstractActionExt getStateChangeAction(Object id) { Action a = getAction(id); if (a != null && a instanceof AbstractActionExt) { AbstractActionExt aa = (AbstractActionExt)a; if (aa.isStateAction()) { return aa; } } return null; }
/** * Convenience method for returning the StateChangeAction * * @param id value of the action id * @return the StateChangeAction referenced by the named id or null */ private AbstractActionExt getStateChangeAction(Object id) { Action a = getAction(id); if (a != null && a instanceof AbstractActionExt) { AbstractActionExt aa = (AbstractActionExt)a; if (aa.isStateAction()) { return aa; } } return null; }
/** * 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. */ public void itemStateChanged(ItemEvent e) { if (isStateAction()) { setSelected(ItemEvent.SELECTED == e.getStateChange()); } }
/** * Determines if the Action corresponding to the action id is a state changed * action (toggle, group type action). * * @param id value of the action id * @return true if the action id represents a multi state action; false otherwise */ public boolean isStateAction(Object id) { Action action = getAction(id); if (action != null && action instanceof AbstractActionExt) { return ((AbstractActionExt)action).isStateAction(); } return false; }
/** * Convenience method for returning the StateChangeAction * * @param id value of the action id * @return the StateChangeAction referenced by the named id or null */ private AbstractActionExt getStateChangeAction(Object id) { Action a = getAction(id); if (a != null && a instanceof AbstractActionExt) { AbstractActionExt aa = (AbstractActionExt)a; if (aa.isStateAction()) { return aa; } } return null; }
/** * Convenience method for returning the StateChangeAction * * @param id value of the action id * @return the StateChangeAction referenced by the named id or null */ private AbstractActionExt getStateChangeAction(Object id) { Action a = getAction(id); if (a != null && a instanceof AbstractActionExt) { AbstractActionExt aa = (AbstractActionExt)a; if (aa.isStateAction()) { return aa; } } return null; }
/** * 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()); } } }
AbstractActionExt ta = (AbstractActionExt)action; if (ta.isStateAction()) { String groupid = (String)ta.getGroup(); if (groupid != null) {
AbstractActionExt ta = (AbstractActionExt)action; if (ta.isStateAction()) { String groupid = (String)ta.getGroup(); if (groupid != null) {
AbstractActionExt ta = (AbstractActionExt)action; if (ta.isStateAction()) { String groupid = (String)ta.getGroup(); if (groupid != null) {
AbstractActionExt ta = (AbstractActionExt)action; if (ta.isStateAction()) { String groupid = (String)ta.getGroup(); if (groupid != null) {
if (ta.isStateAction()) {