org.xnap.gui.action
Class ActionContainer

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.xnap.gui.action.ActionContainer
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ActionContainer
extends javax.swing.AbstractAction

Provides a class that looks like a single action but performs multiple actions.

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
ActionContainer(javax.swing.Action action)
          Constructs a MultiAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Calls actionPerformed() on all added Action objects.
 void add(javax.swing.Action action)
          Adds 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
 

Constructor Detail

ActionContainer

public ActionContainer(javax.swing.Action action)
Constructs a MultiAction.

Parameters:
action - the action to read the properties from
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Calls actionPerformed() on all added Action objects.


add

public void add(javax.swing.Action action)
Adds action.



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