org.tigris.gef.base
Class CmdNull

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.tigris.gef.base.Cmd
          extended by org.tigris.gef.base.CmdNull
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class CmdNull
extends Cmd

Cmd to do nothing. This might make some other code simpler. For example, keybinding query funcitons can return a "real" Cmd if there is one bound to the given key, and an instance of CmdNull if there is not. The alternative would be to return null and force the caller to check for null.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.base.Cmd
_args, _resource
 
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
CmdNull()
           
 
Method Summary
 void doIt()
          Do nothing
 void undoIt()
          This is the only undo method that works :)
 
Methods inherited from class org.tigris.gef.base.Cmd
about, actionPerformed, cmdAtIndex, containsArg, getArg, getArg, getName, getResource, register, registeredCmds, setArg, setName, setResource, shouldBeEnabled, updateEnabled
 
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

CmdNull

public CmdNull()
Method Detail

doIt

public void doIt()
Do nothing

Specified by:
doIt in class Cmd

undoIt

public void undoIt()
This is the only undo method that works :)

Specified by:
undoIt in class Cmd