org.fife.ui.app
Class GUIApplication.ToggleToolBarAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.fife.ui.app.StandardAction
          extended by org.fife.ui.app.GUIApplication.ToggleToolBarAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing interface:
GUIApplication

public static class GUIApplication.ToggleToolBarAction
extends StandardAction

Action to toggle a GUIApplication's toolbar.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.fife.ui.app.StandardAction
DEFAULT_ACCELERATOR
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
GUIApplication.ToggleToolBarAction(GUIApplication app, java.util.ResourceBundle msg, java.lang.String nameKey)
          Creates a new ToggleToolBarAction.
GUIApplication.ToggleToolBarAction(GUIApplication app, java.lang.String nameKey)
          Creates a new ToggleToolBarAction.
GUIApplication.ToggleToolBarAction(GUIApplication app, java.lang.String nameKey, java.lang.String icon)
          Creates a new ToggleToolBarAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Toggles the toolbar.
 
Methods inherited from class org.fife.ui.app.StandardAction
getAccelerator, getApplication, getDefaultAccelerator, getIcon, getMnemonic, getName, getShortDescription, setAccelerator, setDefaultAccelerator, setIcon, setIcon, 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
 

Constructor Detail

GUIApplication.ToggleToolBarAction

public GUIApplication.ToggleToolBarAction(GUIApplication app,
                                          java.lang.String nameKey)
Creates a new ToggleToolBarAction.

Parameters:
app - The GUI application that owns this action.
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 nameKey,
                                          java.lang.String icon)
Creates a new ToggleToolBarAction.

Parameters:
app - The GUI application that owns this action.
nameKey - The key for the name of the action (and the possible root of keys for description, mnemonic, etc.).
icon - The name of the icon resource for this action.

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.).
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Toggles the toolbar.

Parameters:
e - The action event.