/** * Returns a long description of the action. * * @return the long description or null */ public String getLongDescription() { return (String)getValue(Action.LONG_DESCRIPTION); }
/** * Returns a small icon which represents the action. * * @return the small icon or null */ public Icon getSmallIcon() { return (Icon)getValue(SMALL_ICON); }
/** * Returns a small icon which represents the action. * * @return the small icon or null */ public Icon getSmallIcon() { return (Icon)getValue(SMALL_ICON); }
/** * Returns the action command. * * @return the action command or null */ public String getActionCommand() { return (String) getValue(Action.ACTION_COMMAND_KEY); }
/** * Returns the name of the action. * * @return the name of the action or null */ public String getName() { return (String)getValue(Action.NAME); }
/** * Returns a short description of the action. * * @return the short description or null */ public String getShortDescription() { return (String)getValue(Action.SHORT_DESCRIPTION); }
/** * Returns a short description of the action. * * @return the short description or null */ public String getShortDescription() { return (String)getValue(Action.SHORT_DESCRIPTION); }
/** * Returns a short description of the action. * * @return the short description or null */ public String getShortDescription() { return (String)getValue(Action.SHORT_DESCRIPTION); }
/** * Returns the key stroke which represents an accelerator * for the action. * * @return the key stroke or null */ public KeyStroke getAccelerator() { return (KeyStroke)getValue(Action.ACCELERATOR_KEY); }
/** * Returns the name of the action. * * @return the name of the action or null */ public String getName() { return (String)getValue(Action.NAME); }
/** * Returns a large icon which represents the action. * * @return the large icon or null */ public Icon getLargeIcon() { return (Icon)getValue(LARGE_ICON); }
/** * Returns the action command. * * @return the action command or null */ public Object getActionCommand() { return getValue(Action.ACTION_COMMAND_KEY); }
/** * Returns the action command. * * @return the action command or null */ public String getActionCommand() { return (String) getValue(Action.ACTION_COMMAND_KEY); }
/** * Returns a long description of the action. * * @return the long description or null */ public String getLongDescription() { return (String)getValue(Action.LONG_DESCRIPTION); }
/** * Returns the key stroke which represents an accelerator * for the action. * * @return the key stroke or null */ public KeyStroke getAccelerator() { return (KeyStroke)getValue(Action.ACCELERATOR_KEY); }
/** * Return the mnemonic key code for the action. * * @return the mnemonic or 0 */ public int getMnemonic() { Integer value = (Integer)getValue(Action.MNEMONIC_KEY); if (value != null) { return value.intValue(); } return '\0'; }
/** * @return true if the action is in the selected state */ public boolean isSelected() { Boolean selected = (Boolean) getValue(SELECTED_KEY); if (selected == null) { return false; } return selected.booleanValue(); }
/** * @return true if the action is in the selected state */ public boolean isSelected() { Boolean selected = (Boolean) getValue(SELECTED_KEY); if (selected == null) { return false; } return selected.booleanValue(); }
/** * Return the mnemonic key code for the action. * * @return the mnemonic or 0 */ public int getMnemonic() { Integer value = (Integer)getValue(Action.MNEMONIC_KEY); if (value != null) { return value.intValue(); } return '\0'; }
/** * @return true if the action is in the selected state */ public boolean isSelected() { Boolean selected = (Boolean) getValue(SELECTED_KEY); if (selected == null) { return false; } return selected.booleanValue(); }