verinec.gui.configurator
Class Configurator.EscKeyAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by verinec.gui.configurator.Configurator.EscKeyAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
Configurator

 class Configurator.EscKeyAction
extends AbstractAction

Listener for keyboard typing, reacts on esc key in edit mode to end node creation.


Field Summary
private  Action ancestor
           
 
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
Configurator.EscKeyAction(Action ancestor)
          Init.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Reset toolbar to cursor and change DrawPanel state to nothing.
 
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

ancestor

private Action ancestor
Constructor Detail

Configurator.EscKeyAction

public Configurator.EscKeyAction(Action ancestor)
Init.

Parameters:
ancestor - The action to perform after this action.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Reset toolbar to cursor and change DrawPanel state to nothing. Call ancestor action.

Parameters:
e - Ignored.

Copyright © 2005 Verinec, DIUF