public interface ActionInfo extends Action, ActionListener, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
ACCELERATOR |
static String |
ACTIVE |
static String |
EXTENSION |
static String |
EXTENSION_NAME |
static String |
ICON_NAME |
static String |
PLUGIN |
static String |
PLUGIN_NAME |
static String |
POSITION |
static String |
REDIRECTION |
static String |
REDIRECTIONS |
static String |
TOOLTIP |
static String |
VISIBLE |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the code asociated to the action.
|
void |
execute(Map args) |
void |
execute(Object arg)
Execute the code asociated to the action.
|
void |
execute(Object[] args)
Execute the code asociated to the action.
|
String |
getAccelerator()
returns a representation human readable of the accelerator to be used
associated to the action.
|
String |
getCommand()
Returns the command used for invoking the execute method of
the extension asociated to this action.
|
IExtension |
getExtension()
returns the extension asociated to the action.
|
String |
getExtensionName()
Returns the extension name of the extension asociated to this action.
|
ImageIcon |
getIcon()
Return an icon asociated to the action.
|
String |
getIconName()
Returns the name of icon asociated to the action.
|
KeyStroke |
getKeyStroke()
returns the KeyStroke which represents the accelerator of this
action.
|
String |
getLabel()
Return a label asociated to the action.
|
String |
getName()
Returns the name of the action.
|
PluginServices |
getPlugin()
returns the plugin of the extension asociated to the action.
|
String |
getPluginName()
Return the plugin name of the plugin asociated to the action.
|
long |
getPosition()
Return the position absolute of the action referred to all actions.
|
Collection<ActionInfo> |
getRedirections()
An action can redirect the execution of the execute, isVisible and isEnabled methods
to other action.
|
String |
getTooltip()
Return a string that represents a tip asociated whit the action,
usually used as tooltip in buttons or menus.
|
boolean |
isActive()
Return true is the action is active.
|
boolean |
isEnabled()
retrurn if the action is enables.
|
boolean |
isVisible()
retrurn if the action can be visible in the user interface or not.
|
void |
setActive(boolean active)
Set the active state of an ActionInfo.
|
addPropertyChangeListener, getValue, putValue, removePropertyChangeListener, setEnabled
actionPerformed
static final String ACCELERATOR
static final String ACTIVE
static final String VISIBLE
static final String PLUGIN_NAME
static final String PLUGIN
static final String EXTENSION_NAME
static final String EXTENSION
static final String REDIRECTIONS
static final String REDIRECTION
static final String POSITION
static final String TOOLTIP
static final String ICON_NAME
PluginServices getPlugin()
IExtension getExtension()
String getPluginName()
getPlugin()
String getExtensionName()
getExtension()
String getName()
String getLabel()
String getCommand()
ImageIcon getIcon()
String getIconName()
String getAccelerator()
KeyStroke getKeyStroke()
getAccelerator()
String getTooltip()
long getPosition()
boolean isVisible()
boolean isEnabled()
void execute()
void execute(Object[] args)
execute()
void execute(Map args)
void execute(Object arg)
execute()
boolean isActive()
void setActive(boolean active)
active
- Collection<ActionInfo> getRedirections()