celeboss.ui
Class CelebAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byceleboss.ui.CelebAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class CelebAction
extends javax.swing.AbstractAction

This class is a simple Action implementation that automatically loads bits of the Action properties.

Version:
1.0
Author:
bevans
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
CelebAction(java.lang.String name, java.lang.String tooltip, java.lang.String command, java.awt.event.ActionListener listener)
          Create a simple action for the toolbar of a celeb window.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Action on button, pass to parent
 
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

CelebAction

public CelebAction(java.lang.String name,
                   java.lang.String tooltip,
                   java.lang.String command,
                   java.awt.event.ActionListener listener)
Create a simple action for the toolbar of a celeb window.

Parameters:
name - Name of action.
tooltip - Long tooltip description.
command - Command string stamped on generated ActionEvents.
listener - Listener receiving any events.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Action on button, pass to parent

Parameters:
arg0 - Action occured