|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Action
An extended ActionListener for AWT.
| Field Summary | |
|---|---|
static java.lang.String |
ACCELERATOR_KEY
Key used for storing a KeyStroke for the accelerator for the
action. |
static java.lang.String |
ACTION_COMMAND_KEY
|
static java.lang.String |
HIDE_TOOLBAR_TEXT
Boolean value to specify if text should be shown when this
action is used to build components for an ActionBar |
static java.lang.String |
IMAGE_PATH
Key for a String value to specify the resource name for the
icon |
static java.lang.String |
LONG_DESCRIPTION
Key for storing a long description for the action. |
static java.lang.String |
MNEMONIC_KEY
Key for storing an Integer object to be used as the mnemonic
for the action. |
static java.lang.String |
NAME
Key used for storing the action name |
static java.lang.String |
SHORT_DESCRIPTION
Key for a short description for the action, used for tooltip text. |
static java.lang.String |
SMALL_IMAGE_PATH
Key for a String value to specify the resource name for the
small icon |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener that will be notified when
either a value changes or the enabled state changes |
java.lang.String |
getName()
Return the name of the action. |
java.lang.Object |
getValue(java.lang.String key)
Actions can have any number of attributes, each referenced by a key (a string). |
boolean |
isEnabled()
Get if the component(s) that were built from this action should be enabled or not. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Actions can have any number of attributes, each referenced by a key (a string). |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from the list
that will be notified when either a value changes or the enabled state changes |
void |
setEnabled(boolean enabled)
Set if the component(s) that were built from this action should be enabled or not. |
| Methods inherited from interface java.awt.event.ActionListener |
|---|
actionPerformed |
| Field Detail |
|---|
static final java.lang.String NAME
static final java.lang.String SHORT_DESCRIPTION
static final java.lang.String LONG_DESCRIPTION
static final java.lang.String ACTION_COMMAND_KEY
static final java.lang.String ACCELERATOR_KEY
KeyStroke for the accelerator for the
action.
static final java.lang.String MNEMONIC_KEY
Integer object to be used as the mnemonic
for the action.
static final java.lang.String SMALL_IMAGE_PATH
String value to specify the resource name for the
small icon
static final java.lang.String IMAGE_PATH
String value to specify the resource name for the
icon
static final java.lang.String HIDE_TOOLBAR_TEXT
Boolean value to specify if text should be shown when this
action is used to build components for an ActionBar
| Method Detail |
|---|
java.lang.Object getValue(java.lang.String key)
null will be returned if no such attribute exists
key - key
void putValue(java.lang.String key,
java.lang.Object value)
key - keyvalue - valuejava.lang.String getName()
AppAction.getValue
using a key of AppAction.NAME.
boolean isEnabled()
void setEnabled(boolean enabled)
enabled - action enaqbledvoid addPropertyChangeListener(java.beans.PropertyChangeListener l)
PropertyChangeListener that will be notified when
either a value changes or the enabled state changes
l - listener to addvoid removePropertyChangeListener(java.beans.PropertyChangeListener l)
PropertyChangeListener from the list
that will be notified when either a value changes or the enabled state changes
l - listener to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||