/** * 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); } }
/** * 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; }