com.tensegrity.gui.container
Class ContainerAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.tensegrity.gui.container.ContainerAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ContainerAction
extends javax.swing.AbstractAction

A ContainerAction is an AbstractAction performed on a Container instance. The Container instance to which the action is performed is passed to the class constructor. The actionPerformed(ActionEvent) method implementation sets the Container visible if it was hidden, and hides it if it was visible. Note that it assumes that the Container is a Component

Version:
$Id: ContainerAction.java,v 1.4 2006/01/05 12:34:34 BurkhardWick Exp $
Author:
S�bastien Guyon Created the 24.10.2003
See Also:
Container, Serialized Form

Field Summary
protected  Container containerInstance
          local Container instance
 
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
ContainerAction(Container container)
          Initializes the ContainerAction instance with the passed Container
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           This method implementation sets the local Container visible if it was hidden, and hides it if it was visible.
 Container getContainer()
          Returns the local Container instance
 java.lang.Object getValue(java.lang.String key)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

containerInstance

protected Container containerInstance
local Container instance

Constructor Detail

ContainerAction

public ContainerAction(Container container)
Initializes the ContainerAction instance with the passed Container

Parameters:
container -
Method Detail

getContainer

public Container getContainer()
Returns the local Container instance

Returns:
the local Container instance

getValue

public java.lang.Object getValue(java.lang.String key)
See Also:
Action.getValue(java.lang.String)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)

This method implementation sets the local Container visible if it was hidden, and hides it if it was visible. Note that it assumes that the Container is a Component.

See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.