|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
eu.beesoft.gaia.swing.SwingAction
public abstract class SwingAction
Extends functionality of javax.swing.AbstractAction
by adding
accessors for action properties.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractAction |
---|
enabled, changeSupport |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
SwingAction()
|
Method Summary | |
---|---|
javax.swing.KeyStroke |
getAccelerator()
Gets the action accelerator key (property Action.ACCELERATOR_KEY ). |
java.lang.String |
getActionCommand()
Gets the action command (property Action.ACTION_COMMAND_KEY
). |
javax.swing.Icon |
getIcon()
Gets the action icon (property Action.SMALL_ICON ). |
java.lang.String |
getName()
Gets the action name (property Action.NAME ). |
java.lang.String |
getToolTipText()
Gets the action tooltip (property Action.SHORT_DESCRIPTION ). |
void |
setAccelerator(javax.swing.KeyStroke accelerator)
Sets the action accelerator key (property Action.ACCELERATOR_KEY ). |
void |
setAccelerator(java.lang.String accelerator)
Sets the action accelerator key (property Action.ACCELERATOR_KEY ). |
void |
setActionCommand(java.lang.String actionCommand)
Sets the action command (property Action.ACTION_COMMAND_KEY
). |
void |
setIcon(javax.swing.Icon icon)
Sets the action icon (property Action.SMALL_ICON ). |
void |
setIcon(java.lang.String name)
Sets the action icon (property Action.SMALL_ICON ) from
resource with given name. |
void |
setName(java.lang.String name)
Sets the action name (property Action.NAME ). |
void |
setToolTipText(java.lang.String toolTipText)
Sets the action tooltip (property Action.SHORT_DESCRIPTION ). |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.ActionListener |
---|
actionPerformed |
Constructor Detail |
---|
public SwingAction()
Method Detail |
---|
public java.lang.String getName()
Action.NAME
).
public void setName(java.lang.String name)
Action.NAME
).
name
- the name to setpublic javax.swing.Icon getIcon()
Action.SMALL_ICON
).
public void setIcon(javax.swing.Icon icon)
Action.SMALL_ICON
).
icon
- -
the icon to setpublic void setIcon(java.lang.String name)
Action.SMALL_ICON
) from
resource with given name.
name
- -
the icon to setpublic java.lang.String getToolTipText()
Action.SHORT_DESCRIPTION
).
public void setToolTipText(java.lang.String toolTipText)
Action.SHORT_DESCRIPTION
).
toolTipText
- the toolTipText to setpublic java.lang.String getActionCommand()
Action.ACTION_COMMAND_KEY
).
public void setActionCommand(java.lang.String actionCommand)
Action.ACTION_COMMAND_KEY
).
actionCommand
- the actionCommand to setpublic javax.swing.KeyStroke getAccelerator()
Action.ACCELERATOR_KEY
).
public void setAccelerator(javax.swing.KeyStroke accelerator)
Action.ACCELERATOR_KEY
).
accelerator
- the accelerator to setpublic void setAccelerator(java.lang.String accelerator)
Action.ACCELERATOR_KEY
). Given String is parsed in
javax.swing.KeyStroke
class.
accelerator
- the accelerator to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |