| org.osbl.client.action.ObjectAction
All known Subclasses: org.osbl.client.action.AbstractObjectAction,
ObjectAction | public interface ObjectAction extends EventListener(Code) | | An ObjectAction is an Action, that can be performed on certain Objects.
It is quite similar to Swing Actions, except that the actionPerformed method provides the objects, for which the
action was caused.
Typical uses are the ObjectDetail, that will call the action for the currently shown object and the ObjectList, that
will call the action for selected objects.
|
Field Summary | |
final public static String | ACCELERATOR_KEY The key used for storing a KeyStroke to be used as the
accelerator for the action. | final public static 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 . | final public static String | DEFAULT | final public static String | LONG_DESCRIPTION The key used for storing a longer String
description for the action, could be used for context-sensitive help. | final public static String | MNEMONIC_KEY The key used for storing a KeyEvent to be used as
the mnemonic for the action. | final public static String | NAME The key used for storing the String name
for the action, used for a menu or button. | final public static String | SHORT_DESCRIPTION The key used for storing a short String
description for the action, used for tooltip text. | final public static String | SMALL_ICON The key used for storing a small Icon , such
as ImageIcon , for the action, used for toolbar buttons. |
ACCELERATOR_KEY | final public static String ACCELERATOR_KEY(Code) | | The key used for storing a KeyStroke to be used as the
accelerator for the action.
since: 1.3 |
ACTION_COMMAND_KEY | final public static String ACTION_COMMAND_KEY(Code) | | 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 .
|
LONG_DESCRIPTION | final public static String LONG_DESCRIPTION(Code) | | The key used for storing a longer String
description for the action, could be used for context-sensitive help.
|
MNEMONIC_KEY | final public static String MNEMONIC_KEY(Code) | | The key used for storing a KeyEvent to be used as
the mnemonic for the action.
since: 1.3 |
NAME | final public static String NAME(Code) | | The key used for storing the String name
for the action, used for a menu or button.
|
SHORT_DESCRIPTION | final public static String SHORT_DESCRIPTION(Code) | | The key used for storing a short String
description for the action, used for tooltip text.
|
SMALL_ICON | final public static String SMALL_ICON(Code) | | The key used for storing a small Icon , such
as ImageIcon , for the action, used for toolbar buttons.
|
isEnabled | public boolean isEnabled()(Code) | | Returns the enabled state of the Action . When enabled,
any component associated with this object is active and
able to fire this object's actionPerformed method.
true if this Action is enabled |
putValue | public void putValue(String key, Object value)(Code) | | Sets one of this object's properties using the associated key.
Parameters: key - a String containing the key Parameters: value - an Object value |
setEnabled | public void setEnabled(boolean b)(Code) | | Sets the enabled state of the Action . When enabled,
any component associated with this object is active and
able to fire this object's actionPerformed method.
If the value has changed, a PropertyChangeEvent is sent
to listeners.
Parameters: b - true to enable this Action , false to disable it |
|
|