public class TranslatedActionInfo extends java.lang.Object implements ActionInfo
ACCELERATOR, ACTIVE, EXTENSION, EXTENSION_NAME, ICON_NAME, PLUGIN, PLUGIN_NAME, POSITION, REDIRECTION, REDIRECTIONS, TOOLTIP, VISIBLE| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.lang.Object |
clone() |
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.
|
java.lang.Object |
getValue(java.lang.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(java.lang.String key,
java.lang.Object value) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
setActive(boolean active)
Set the active state of an ActionInfo.
|
void |
setEnabled(boolean b) |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface javax.swing.Actionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void execute()
ActionInfoexecute in interface ActionInfopublic void execute(java.util.Map args)
execute in interface ActionInfopublic void execute(java.lang.Object arg)
ActionInfoexecute in interface ActionInfoActionInfo.execute()public void execute(java.lang.Object[] args)
ActionInfoexecute in interface ActionInfoActionInfo.execute()public java.lang.String getAccelerator()
ActionInfogetAccelerator in interface ActionInfopublic java.lang.String getCommand()
ActionInfogetCommand in interface ActionInfopublic IExtension getExtension()
ActionInfogetExtension in interface ActionInfopublic java.lang.String getExtensionName()
ActionInfogetExtensionName in interface ActionInfoActionInfo.getExtension()public javax.swing.ImageIcon getIcon()
ActionInfogetIcon in interface ActionInfopublic java.lang.String getIconName()
ActionInfogetIconName in interface ActionInfopublic javax.swing.KeyStroke getKeyStroke()
ActionInfogetKeyStroke in interface ActionInfoActionInfo.getAccelerator()public java.lang.String getLabel()
ActionInfogetLabel in interface ActionInfopublic java.lang.String getName()
ActionInfogetName in interface ActionInfopublic PluginServices getPlugin()
ActionInfogetPlugin in interface ActionInfopublic java.lang.String getPluginName()
ActionInfogetPluginName in interface ActionInfoActionInfo.getPlugin()public long getPosition()
ActionInfogetPosition in interface ActionInfopublic java.util.Collection<ActionInfo> getRedirections()
ActionInfogetRedirections in interface ActionInfopublic java.lang.String getTooltip()
ActionInfogetTooltip in interface ActionInfopublic java.lang.Object getValue(java.lang.String key)
getValue in interface javax.swing.Actionpublic boolean isActive()
ActionInfoisActive in interface ActionInfopublic boolean isEnabled()
ActionInfoisEnabled in interface javax.swing.ActionisEnabled in interface ActionInfopublic boolean isVisible()
ActionInfoisVisible in interface ActionInfopublic void putValue(java.lang.String key,
java.lang.Object value)
putValue in interface javax.swing.Actionpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface javax.swing.Actionpublic void setActive(boolean active)
ActionInfosetActive in interface ActionInfopublic void setEnabled(boolean b)
setEnabled in interface javax.swing.ActionCopyright © 2025 gvSIG Association. All rights reserved.