Example usage for Java javax.swing Action fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT Not currently used. |
String | NAME The key used for storing the String name for the action, used for a menu or button. |
String | SHORT_DESCRIPTION The key used for storing a short String description for the action, used for tooltip text. |
String | LONG_DESCRIPTION The key used for storing a longer String description for the action, could be used for context-sensitive help. |
String | SMALL_ICON The key used for storing a small Icon , such as ImageIcon . |
String | ACTION_COMMAND_KEY The key used to determine the command String for the ActionEvent that will be created when an Action is going to be notified as the result of residing in a Keymap associated with a JComponent . |
String | ACCELERATOR_KEY The key used for storing a KeyStroke to be used as the accelerator for the action. |
String | MNEMONIC_KEY The key used for storing an Integer that corresponds to one of the KeyEvent key codes. |
String | SELECTED_KEY The key used for storing a Boolean that corresponds to the selected state. |
String | DISPLAYED_MNEMONIC_INDEX_KEY The key used for storing an Integer that corresponds to the index in the text (identified by the NAME property) that the decoration for a mnemonic should be rendered at. |
String | LARGE_ICON_KEY The key used for storing an Icon . |
void | actionPerformed(ActionEvent e) Invoked when an action occurs. |
void | addPropertyChangeListener(PropertyChangeListener listener) Adds a PropertyChange listener. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
Class> | getClass() Returns the runtime class of this Object . |
Object | getValue(String key) Gets one of this object's properties using the associated key. |
boolean | isEnabled() Returns the enabled state of the Action . |
void | putValue(String key, Object value) Sets one of this object's properties using the associated key. |
void | removePropertyChangeListener(PropertyChangeListener listener) Removes a PropertyChange listener. |
void | setEnabled(boolean b) Sets the enabled state of the Action . |
String | toString() Returns a string representation of the object. |