/** * Changes the state of the action. This is a convenience method for updating the Action via the * value map. * * @param newValue * true to set the action as selected of the action. * @see Action#SELECTED_KEY */ public void setSelected(boolean newValue) { putValue(SELECTED_KEY, newValue); }
/** * Changes the state of the action. This is a convenience method for updating the Action via the * value map. * * @param newValue * true to set the action as selected of the action. * @see Action#SELECTED_KEY */ public void setSelected(boolean newValue) { putValue(SELECTED_KEY, newValue); }
/** * Sets the name of the action. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.NAME</code> key. * * @param name the name of the action; can be <code>null</code> * @see Action#NAME * @see Action#putValue */ public void setName(String name) { putValue(Action.NAME, name); }
/** * Sets the small icon which represents the action. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.SMALL_ICON</code> key. * * @param icon the small icon; can be <code>null</code> * @see Action#SMALL_ICON * @see Action#putValue */ public void setSmallIcon(Icon icon) { putValue(SMALL_ICON, icon); }
/** * Sets the name of the action. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.NAME</code> key. * * @param name the name of the action; can be <code>null</code> * @see Action#NAME * @see Action#putValue */ public void setName(String name) { putValue(Action.NAME, name); }
/** * Sets the group identity of the state action. This is used to * identify the action as part of a button group. */ public void setGroup(Object group) { putValue(GROUP, group); }
/** * Changes the state of the action. This is a convenience method for updating the Action via the * value map. * * @param newValue * true to set the action as selected of the action. * @see Action#SELECTED_KEY */ public void setSelected(boolean newValue) { putValue(SELECTED_KEY, newValue); }
/** * Sets the name of the action. * <p> * This is a convenience method for <code>putValue</code> with the * <code>Action.NAME</code> key. * * @param name the name of the action; can be <code>null</code> * @see Action#NAME * @see Action#putValue */ public void setName(String name) { putValue(Action.NAME, name); }
/** * Sets the group identity of the state action. This is used to * identify the action as part of a button group. */ public void setGroup(Object group) { putValue(GROUP, group); }
/** * Sets the group identity of the state action. This is used to * identify the action as part of a button group. */ public void setGroup(Object group) { putValue(GROUP, group); }
/** * Sets the group identity of the state action. This is used to * identify the action as part of a button group. */ public void setGroup(Object group) { putValue(GROUP, group); }
/** * Sets the large icon which represents the action. * <p> * This is a convenience method for <code>putValue</code> with the * <code>LARGE_ICON</code> key. * * @param icon the large icon; can be <code>null</code> * @see #LARGE_ICON * @see Action#putValue */ public void setLargeIcon(Icon icon) { putValue(LARGE_ICON, icon); }
/** * Set the state property. * * @param state if true then this action will fire ItemEvents */ public void setStateAction(boolean state) { putValue(IS_STATE, Boolean.valueOf(state)); }
/** * Set the state property. * * @param state if true then this action will fire ItemEvents */ public void setStateAction(boolean state) { putValue(IS_STATE, Boolean.valueOf(state)); }
/** * Set the state property. * * @param state if true then this action will fire ItemEvents */ public void setStateAction(boolean state) { putValue(IS_STATE, Boolean.valueOf(state)); }
/** * Set the state property. * * @param state if true then this action will fire ItemEvents */ public void setStateAction(boolean state) { putValue(IS_STATE, Boolean.valueOf(state)); }
public void setMnemonic(String mnemonic) { if (mnemonic != null && mnemonic.length() > 0) { putValue(Action.MNEMONIC_KEY, new Integer(mnemonic.charAt(0))); } }
public void setMnemonic(String mnemonic) { if (mnemonic != null && mnemonic.length() > 0) { putValue(Action.MNEMONIC_KEY, new Integer(mnemonic.charAt(0))); } }
public void setMnemonic(String mnemonic) { if (mnemonic != null && mnemonic.length() > 0) { putValue(Action.MNEMONIC_KEY, new Integer(mnemonic.charAt(0))); } }
public void setMnemonic(String mnemonic) { if (mnemonic != null && mnemonic.length() > 0) { putValue(Action.MNEMONIC_KEY, new Integer(mnemonic.charAt(0))); } }