public class TranslatedActionInfo extends Object implements ActionInfo
ACCELERATOR, ACTIVE, EXTENSION, EXTENSION_NAME, ICON_NAME, PLUGIN, PLUGIN_NAME, POSITION, REDIRECTION, REDIRECTIONS, TOOLTIP, VISIBLEACCELERATOR_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 |
actionPerformed(ActionEvent e) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
Object |
clone()
Creates a copy of the object.
|
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.
|
Object |
getValue(String key) |
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 |
putValue(String key,
Object value) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setActive(boolean active)
Set the active state of an ActionInfo.
|
void |
setEnabled(boolean b) |
public void setEnabled(boolean b)
setEnabled in interface Actionpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface Actionpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface Actionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic PluginServices getPlugin()
ActionInfogetPlugin in interface ActionInfopublic IExtension getExtension()
ActionInfogetExtension in interface ActionInfopublic String getPluginName()
ActionInfogetPluginName in interface ActionInfoActionInfo.getPlugin()public String getExtensionName()
ActionInfogetExtensionName in interface ActionInfoActionInfo.getExtension()public String getName()
ActionInfogetName in interface ActionInfopublic String getLabel()
ActionInfogetLabel in interface ActionInfopublic String getCommand()
ActionInfogetCommand in interface ActionInfopublic ImageIcon getIcon()
ActionInfogetIcon in interface ActionInfopublic String getIconName()
ActionInfogetIconName in interface ActionInfopublic String getAccelerator()
ActionInfogetAccelerator in interface ActionInfopublic KeyStroke getKeyStroke()
ActionInfogetKeyStroke in interface ActionInfoActionInfo.getAccelerator()public String getTooltip()
ActionInfogetTooltip in interface ActionInfopublic long getPosition()
ActionInfogetPosition in interface ActionInfopublic boolean isVisible()
ActionInfoisVisible in interface ActionInfopublic boolean isEnabled()
ActionInfoisEnabled in interface ActionisEnabled in interface ActionInfopublic void execute()
ActionInfoexecute in interface ActionInfopublic void execute(Object[] args)
ActionInfoexecute in interface ActionInfoActionInfo.execute()public void execute(Map args)
execute in interface ActionInfopublic void execute(Object arg)
ActionInfoexecute in interface ActionInfoActionInfo.execute()public boolean isActive()
ActionInfoisActive in interface ActionInfopublic void setActive(boolean active)
ActionInfosetActive in interface ActionInfopublic Collection<ActionInfo> getRedirections()
ActionInfogetRedirections in interface ActionInfopublic Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.