net.clackrouter.jgraph.utils.gui
Class GPEscAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.clackrouter.jgraph.utils.gui.GPEscAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class GPEscAction
extends javax.swing.AbstractAction

The action analysis the source from the action event. If it is a JInternalFrame or a Window, then the action will call the dispose method.

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
GPEscAction()
          Creates a new instance
GPEscAction(javax.swing.JButton button)
          Creates a new instance for the esc button
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          If the button is set, then the method will call the do click method at the button.
 
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

GPEscAction

public GPEscAction()
Creates a new instance


GPEscAction

public GPEscAction(javax.swing.JButton button)
Creates a new instance for the esc button

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
If the button is set, then the method will call the do click method at the button. If the event source is a JInternalFrame or a Window, then the action will call the dispose method.

See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent), AbstractButton.doClick()