org.xnap.gui.action
Class PanelAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xnap.action.AbstractToggleAction
          extended by org.xnap.gui.action.PanelAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ToggleAction
Direct Known Subclasses:
MenuAction

public class PanelAction
extends AbstractToggleAction
implements ToggleAction

Provides an action that shows a panel below the button that triggered this action.

See Also:
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
PanelAction(javax.swing.JComponent jc, java.lang.String iconFilename)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void toggled(boolean selected)
          Invoked when the selection changes.
 
Methods inherited from class org.xnap.action.AbstractToggleAction
isSelected, setSelected
 
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 org.xnap.action.ToggleAction
isSelected, setSelected
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

PanelAction

public PanelAction(javax.swing.JComponent jc,
                   java.lang.String iconFilename)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AbstractToggleAction

toggled

public void toggled(boolean selected)
Description copied from class: AbstractToggleAction
Invoked when the selection changes.

Specified by:
toggled in class AbstractToggleAction


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