org.tigris.toolbutton
Class AbstractButtonAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.tigris.toolbutton.AbstractButtonAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, ModalAction, java.io.Serializable
Direct Known Subclasses:
ToolButton.ToolButtonAction

public abstract class AbstractButtonAction
extends javax.swing.AbstractAction
implements ModalAction

The abstract class for all button actions that wish to detect double click events

Author:
Bob Tarling
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
AbstractButtonAction()
           
AbstractButtonAction(java.lang.String name, javax.swing.Icon icon)
          Creates a new instance of AbstractButtonAction
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
           
 javax.swing.Icon getIcon()
           
 java.lang.String getName()
           
protected  boolean isDoubleClick()
           
 
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

AbstractButtonAction

public AbstractButtonAction()

AbstractButtonAction

public AbstractButtonAction(java.lang.String name,
                            javax.swing.Icon icon)
Creates a new instance of AbstractButtonAction

Method Detail

isDoubleClick

protected boolean isDoubleClick()

getName

public java.lang.String getName()

getIcon

public javax.swing.Icon getIcon()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvent)
Specified by:
actionPerformed in interface java.awt.event.ActionListener