org.xnap.gui.action
Class SubmenuAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xnap.action.AbstractXNapAction
          extended by org.xnap.gui.action.SubmenuAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ActionProvider
Direct Known Subclasses:
OptionSubmenuAction

public class SubmenuAction
extends AbstractXNapAction
implements ActionProvider

Provides an action that provides a submenu.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xnap.action.AbstractXNapAction
DEFAULT_KEYSTROKE, SHORTCUT_CATEGORY, SHORTCUT_DESCRIPTION, XNAP_ICON
 
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
SubmenuAction(javax.swing.Action[] actions)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Does nothing.
 javax.swing.JMenu createMenu()
           
 javax.swing.Action[] getActions()
          Returns the actions to be shown in the tool bar.
 
Methods inherited from class org.xnap.action.AbstractXNapAction
setEnabledLater
 
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

SubmenuAction

public SubmenuAction(javax.swing.Action[] actions)
Method Detail

createMenu

public javax.swing.JMenu createMenu()

getActions

public javax.swing.Action[] getActions()
Description copied from interface: ActionProvider
Returns the actions to be shown in the tool bar.

Specified by:
getActions in interface ActionProvider

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Does nothing.

Specified by:
actionPerformed in interface java.awt.event.ActionListener


Copyright © 2001-2005 XNap Team. All Rights Reserved.