/** * Gets 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 * @return true if the action is selected; false if the action * doesn't exist or is disabled. */ public boolean isSelected(Object id) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { return action.isSelected(); } return false; }
/** * Gets 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 * @return true if the action is selected; false if the action * doesn't exist or is disabled. */ public boolean isSelected(Object id) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { return action.isSelected(); } return false; }
/** * Gets 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 * @return true if the action is selected; false if the action * doesn't exist or is disabled. */ public boolean isSelected(Object id) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { return action.isSelected(); } return false; }
/** * Gets 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 * @return true if the action is selected; false if the action * doesn't exist or is disabled. */ public boolean isSelected(Object id) { AbstractActionExt action = getStateChangeAction(id); if (action != null) { return action.isSelected(); } return false; }
button.addItemListener(a); button.setSelected(a.isSelected()); new ToggleActionPropertyChangeListener(a, button);
button.addItemListener(a); button.setSelected(a.isSelected()); new ToggleActionPropertyChangeListener(a, button);
button.addItemListener(a); button.setSelected(a.isSelected()); new ToggleActionPropertyChangeListener(a, button);
button.addItemListener(a); button.setSelected(a.isSelected()); new ToggleActionPropertyChangeListener(a, button);