org.tanager.ui
Class CRightButtonAction

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

public class CRightButtonAction
extends javax.swing.AbstractAction

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

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

Field Summary
private static long serialVersionUID
           Represents the universal version ID of this class.
private  IRightButtonCallback theCallback_
           Poseidon-generated association with the IRightButtonCallback 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
CRightButtonAction(IRightButtonCallback callback)
           This is the only contructor allowed for a CRightButtonAction 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  IRightButtonCallback 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

theCallback_

private IRightButtonCallback theCallback_

Poseidon-generated association with the IRightButtonCallback implementor.


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
Constructor Detail

CRightButtonAction

public CRightButtonAction(IRightButtonCallback callback)

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

getTheCallback

protected IRightButtonCallback getTheCallback()

Poseidon-generated accessor method.

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