org.tanager.ui
Class CDownButtonAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.tanager.ui.CDownButtonAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class CDownButtonAction
extends javax.swing.AbstractAction

This class encapsulates the concept of an action to be taken when the down button is pressed.

Version:
$Revision: 1.2.2.1 $
Author:
Bob Lavey
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           Represents the universal version ID of this class.
private  IDownButtonCallback theCallback_
           Represents the association with the callback implementor.
 
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
CDownButtonAction(IDownButtonCallback callback)
           This is the only contructor allowed for a CDownButtonAction object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           This method is called whenever the button to which this object has been attached is pressed.
protected  IDownButtonCallback getTheCallback()
           Poseidon-generated accessor method.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID

Represents the universal version ID of this class. This ID is recommended for all classes that implement the Serializable interface.

See Also:
Constant Field Values

theCallback_

private IDownButtonCallback theCallback_

Represents the association with the callback implementor.

Constructor Detail

CDownButtonAction

public CDownButtonAction(IDownButtonCallback callback)

This is the only contructor allowed for a CDownButtonAction object. This constructor initializes the super class and the association with the callback implementor.

Semantics:
  1. initialize the association with the callback implementor

Parameters:
callback - a reference to the IDownButtonCallback implementor
Method Detail

getTheCallback

protected IDownButtonCallback getTheCallback()

Poseidon-generated accessor method.

Returns:
the IDownButtonCallback implementor

actionPerformed

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

This method is called whenever the button to which this object has been attached is pressed.

Semantics:
  1. call the callback implementor's downButtonPressed() method
  2. Parameters:
    arg0 - the event that occurred