org.fife.ui.app
Class GUIApplication.ToggleToolBarAction
java.lang.Object
javax.swing.AbstractAction
org.fife.ui.app.StandardAction
org.fife.ui.app.GUIApplication.ToggleToolBarAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- Enclosing class:
- GUIApplication
- public static class GUIApplication.ToggleToolBarAction
- extends StandardAction
Action to toggle a GUIApplication's toolbar.
- See Also:
- Serialized Form
| 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 |
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Toggles the toolbar. |
| Methods inherited from class org.fife.ui.app.StandardAction |
getAccelerator, getApplication, getIcon, getMnemonic, getName, getShortDescription, setAccelerator, setIcon, setMnemonic, setName, setShortDescription |
| 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 |
GUIApplication.ToggleToolBarAction
public GUIApplication.ToggleToolBarAction(GUIApplication app,
java.util.ResourceBundle msg,
java.lang.String nameKey)
- Creates a new
ToggleToolBarAction.
- Parameters:
app - The GUI application that owns this action.msg - The resource bundle to localize from.nameKey - The key for the name of the action (and the possible
root of keys for description, mnemonic, etc.).
GUIApplication.ToggleToolBarAction
public GUIApplication.ToggleToolBarAction(GUIApplication app,
java.lang.String text)
- Creates a new
ToggleToolBarAction.
- Parameters:
app - The GUI application that owns this action.text - The text associated with the action.
GUIApplication.ToggleToolBarAction
public GUIApplication.ToggleToolBarAction(GUIApplication app,
java.lang.String text,
javax.swing.Icon icon,
java.lang.String desc,
int mnemonic,
javax.swing.KeyStroke accelerator)
- Creates a new
ToggleToolBarAction.
- Parameters:
app - The GUI application that owns this action.text - The text associated with 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.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Toggles the toolbar.
- Parameters:
e - The action event.