public interface ActionInfo extends javax.swing.Action, java.awt.event.ActionListener, Cloneable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCELERATOR |
static java.lang.String |
ACTIVE |
static java.lang.String |
EXTENSION |
static java.lang.String |
EXTENSION_NAME |
static java.lang.String |
ICON_NAME |
static java.lang.String |
PLUGIN |
static java.lang.String |
PLUGIN_NAME |
static java.lang.String |
POSITION |
static java.lang.String |
REDIRECTION |
static java.lang.String |
REDIRECTIONS |
static java.lang.String |
TOOLTIP |
static java.lang.String |
VISIBLE |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the code asociated to the action.
|
void |
execute(java.util.Map args) |
void |
execute(java.lang.Object arg)
Execute the code asociated to the action.
|
void |
execute(java.lang.Object[] args)
Execute the code asociated to the action.
|
java.lang.String |
getAccelerator()
returns a representation human readable of the accelerator to be used
associated to the action.
|
java.lang.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.
|
java.lang.String |
getExtensionName()
Returns the extension name of the extension asociated to this action.
|
javax.swing.ImageIcon |
getIcon()
Return an icon asociated to the action.
|
java.lang.String |
getIconName()
Returns the name of icon asociated to the action.
|
javax.swing.KeyStroke |
getKeyStroke()
returns the KeyStroke which represents the accelerator of this
action.
|
java.lang.String |
getLabel()
Return a label asociated to the action.
|
java.lang.String |
getName()
Returns the name of the action.
|
PluginServices |
getPlugin()
returns the plugin of the extension asociated to the action.
|
java.lang.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.
|
java.util.Collection<ActionInfo> |
getRedirections()
An action can redirect the execution of the execute, isVisible and isEnabled methods
to other action.
|
java.lang.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
clone, cloneQuietly, cloneQuietly
static final java.lang.String ACCELERATOR
static final java.lang.String ACTIVE
static final java.lang.String VISIBLE
static final java.lang.String PLUGIN_NAME
static final java.lang.String PLUGIN
static final java.lang.String EXTENSION_NAME
static final java.lang.String EXTENSION
static final java.lang.String REDIRECTIONS
static final java.lang.String REDIRECTION
static final java.lang.String POSITION
static final java.lang.String TOOLTIP
static final java.lang.String ICON_NAME
PluginServices getPlugin()
IExtension getExtension()
java.lang.String getPluginName()
getPlugin()
java.lang.String getExtensionName()
getExtension()
java.lang.String getName()
java.lang.String getLabel()
java.lang.String getCommand()
javax.swing.ImageIcon getIcon()
java.lang.String getIconName()
java.lang.String getAccelerator()
javax.swing.KeyStroke getKeyStroke()
getAccelerator()
java.lang.String getTooltip()
long getPosition()
boolean isVisible()
boolean isEnabled()
isEnabled
in interface javax.swing.Action
void execute()
void execute(java.lang.Object[] args)
execute()
void execute(java.util.Map args)
void execute(java.lang.Object arg)
execute()
boolean isActive()
void setActive(boolean active)
active
- java.util.Collection<ActionInfo> getRedirections()