|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
org.fife.ui.app.StandardAction
The action type used by all instances of GUIApplication. This
is merely an action with many ease-of-use methods.
GUIApplication,
Serialized Form| Field Summary |
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
StandardAction(GUIApplication app,
java.util.ResourceBundle msg,
java.lang.String key)
Creates an action, initializing its properties from a resource bundle. |
|
StandardAction(GUIApplication app,
java.lang.String name)
Constructor. |
|
StandardAction(GUIApplication app,
java.lang.String name,
javax.swing.Icon icon)
Constructor. |
|
StandardAction(GUIApplication app,
java.lang.String name,
javax.swing.Icon icon,
java.lang.String desc,
int mnemonic,
javax.swing.KeyStroke accelerator)
Constructor. |
|
| Method Summary | |
javax.swing.KeyStroke |
getAccelerator()
Returns the accelerator for this action. |
GUIApplication |
getApplication()
Returns the application. |
javax.swing.Icon |
getIcon()
Returns the icon for this action. |
int |
getMnemonic()
Returns the mnemonic for this action. |
java.lang.String |
getName()
Returns the name of this action. |
java.lang.String |
getShortDescription()
Returns the short description for this action. |
void |
setAccelerator(javax.swing.KeyStroke accelerator)
Sets the accelerator for this action. |
void |
setIcon(javax.swing.Icon icon)
Sets the icon of this action. |
void |
setMnemonic(int mnemonic)
Sets the mnemonic for this action. |
void |
setName(java.lang.String name)
Sets the name of this action. |
void |
setShortDescription(java.lang.String desc)
Sets the short description for this action. |
| 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 StandardAction(GUIApplication app,
java.util.ResourceBundle msg,
java.lang.String key)
key + ".Mnemonic",
key + ".Accelerator" or key + ".ShortDesc",
then those properties are set as well.
app - The parent application.msg - The bundle to localize from.key - The key in the bundle for the name of this action.
public StandardAction(GUIApplication app,
java.lang.String name)
app - The parent application.name - The name of the action.
public StandardAction(GUIApplication app,
java.lang.String name,
javax.swing.Icon icon)
app - The parent application.name - The name of the action.icon - The icon associated with the action.
public StandardAction(GUIApplication app,
java.lang.String name,
javax.swing.Icon icon,
java.lang.String desc,
int mnemonic,
javax.swing.KeyStroke accelerator)
app - The parent application.name - The name of the action.icon - The icon associated with the action.desc - The description of the action.mnemonic - The mnemonic for the action.accelerator - The accelerator key for the action.| Method Detail |
public javax.swing.KeyStroke getAccelerator()
setAccelerator(KeyStroke)public GUIApplication getApplication()
public javax.swing.Icon getIcon()
setIcon(Icon)public int getMnemonic()
-1 if not defined.setMnemonic(int)public java.lang.String getName()
setName(String)public java.lang.String getShortDescription()
setShortDescription(String)public void setAccelerator(javax.swing.KeyStroke accelerator)
accelerator - The new accelerator, or null for none.getAccelerator()public void setIcon(javax.swing.Icon icon)
icon - The icon.getIcon()public void setMnemonic(int mnemonic)
mnemonic - The new mnemonic. A value of -1 means
"no mnemonic."getMnemonic()public void setName(java.lang.String name)
name - The name of this action.getName()public void setShortDescription(java.lang.String desc)
desc - The description.getShortDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||