public class DefaultActionInfo extends javax.swing.AbstractAction 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 arg0) |
java.lang.Object |
clone()
Creates a copy of the object.
|
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 |
merge(ActionInfo other) |
void |
putValue(java.lang.String key,
java.lang.Object newValue) |
void |
setActive(boolean active)
Set the active state of an ActionInfo.
|
java.lang.String |
toString() |
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener, setEnabled
cloneQuietly, cloneQuietly
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class javax.swing.AbstractAction
java.lang.CloneNotSupportedException
- 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()}.
public java.util.Collection<ActionInfo> getRedirections()
ActionInfo
getRedirections
in interface ActionInfo
public void merge(ActionInfo other)
public PluginServices getPlugin()
ActionInfo
getPlugin
in interface ActionInfo
public java.lang.String getPluginName()
ActionInfo
getPluginName
in interface ActionInfo
ActionInfo.getPlugin()
public IExtension getExtension()
ActionInfo
getExtension
in interface ActionInfo
public java.lang.String getExtensionName()
ActionInfo
getExtensionName
in interface ActionInfo
ActionInfo.getExtension()
public boolean isVisible()
ActionInfo
isVisible
in interface ActionInfo
public boolean isEnabled()
ActionInfo
isEnabled
in interface javax.swing.Action
isEnabled
in interface ActionInfo
isEnabled
in class javax.swing.AbstractAction
public void execute()
ActionInfo
execute
in interface ActionInfo
public void execute(java.lang.Object[] args)
ActionInfo
execute
in interface ActionInfo
ActionInfo.execute()
public void execute(java.lang.Object arg)
ActionInfo
execute
in interface ActionInfo
ActionInfo.execute()
public void execute(java.util.Map args)
execute
in interface ActionInfo
public void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed
in interface java.awt.event.ActionListener
public java.lang.String getName()
ActionInfo
getName
in interface ActionInfo
public java.lang.String getLabel()
ActionInfo
getLabel
in interface ActionInfo
public java.lang.String getCommand()
ActionInfo
getCommand
in interface ActionInfo
public java.lang.String getIconName()
ActionInfo
getIconName
in interface ActionInfo
public javax.swing.ImageIcon getIcon()
ActionInfo
getIcon
in interface ActionInfo
public java.lang.String getAccelerator()
ActionInfo
getAccelerator
in interface ActionInfo
public javax.swing.KeyStroke getKeyStroke()
ActionInfo
getKeyStroke
in interface ActionInfo
ActionInfo.getAccelerator()
public long getPosition()
ActionInfo
getPosition
in interface ActionInfo
public java.lang.String getTooltip()
ActionInfo
getTooltip
in interface ActionInfo
public java.lang.Object getValue(java.lang.String key)
getValue
in interface javax.swing.Action
getValue
in class javax.swing.AbstractAction
public void putValue(java.lang.String key, java.lang.Object newValue)
putValue
in interface javax.swing.Action
putValue
in class javax.swing.AbstractAction
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isActive()
ActionInfo
isActive
in interface ActionInfo
public void setActive(boolean active)
ActionInfo
setActive
in interface ActionInfo