org.tanager.ui
Class CLeftButtonAction

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

public class CLeftButtonAction
extends javax.swing.AbstractAction

This class encapsulates the concept of an action to be taken when the left 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  ILeftButtonCallback 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
CLeftButtonAction(ILeftButtonCallback callback)
           This is the only contructor allowed for a CLeftButtonAction 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  ILeftButtonCallback 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 ILeftButtonCallback theCallback_

Represents the association with the callback implementor.

Constructor Detail

CLeftButtonAction

public CLeftButtonAction(ILeftButtonCallback callback)

This is the only contructor allowed for a CLeftButtonAction 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 ILeftButtonCallback implementor
Method Detail

getTheCallback

protected ILeftButtonCallback getTheCallback()

Poseidon-generated accessor method.

Returns:
the ILeftButtonCallback 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 leftButtonPressed() method
  2. Parameters:
    arg0 - the event that occurred