org.argouml.ui
Class CmdSetMode

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.base.Cmd
          extended byorg.tigris.gef.base.CmdSetMode
              extended byorg.argouml.ui.CmdSetMode
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Direct Known Subclasses:
ActionAddAssociation, ActionAddAssociationRole

public class CmdSetMode
extends org.tigris.gef.base.CmdSetMode

Extends GEF CmdSetMode to add additional metadata such as tooltips.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private static String ACTION_PREFIX_KEY
           
 
Fields inherited from class org.tigris.gef.base.CmdSetMode
_modeArgs
 
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
CmdSetMode(Class modeClass)
          The constructor.
CmdSetMode(Class modeClass, boolean sticky)
          The constructor.
CmdSetMode(Class modeClass, Hashtable modeArgs)
          The constructor.
CmdSetMode(Class modeClass, Hashtable modeArgs, String name)
          The constructor.
CmdSetMode(Class modeClass, String name)
          The constructor.
CmdSetMode(Class modeClass, String arg, Object value)
          The constructor.
CmdSetMode(Class modeClass, String arg, Object value, String name)
          The constructor.
CmdSetMode(Class modeClass, String arg, Object value, String name, ImageIcon icon)
          The constructor.
CmdSetMode(Class modeClass, String name, String tooltip)
          The constructor.
CmdSetMode(Properties args)
          The constructor.
 
Method Summary
private  void putToolTip(String name)
          Adds tooltip text to the Action.
 
Methods inherited from class org.tigris.gef.base.CmdSetMode
doIt, undoIt
 
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
 

Field Detail

ACTION_PREFIX_KEY

private static final String ACTION_PREFIX_KEY
See Also:
Constant Field Values
Constructor Detail

CmdSetMode

public CmdSetMode(Properties args)
The constructor.

Parameters:
args - arguments

CmdSetMode

public CmdSetMode(Class modeClass)
The constructor.

Parameters:
modeClass - the next global editor mode

CmdSetMode

public CmdSetMode(Class modeClass,
                  String name)
The constructor.

Parameters:
modeClass - the next global editor mode
name - the name of the command = tooltip text

CmdSetMode

public CmdSetMode(Class modeClass,
                  String name,
                  String tooltip)
The constructor.

Parameters:
modeClass - the next global editor mode
name - the to be localized name of the command
tooltip - the tooltip text

CmdSetMode

public CmdSetMode(Class modeClass,
                  boolean sticky)
The constructor.

Parameters:
modeClass - the next global editor mode
sticky - the global sticky mode boolean allows the user to place several nodes rapidly (in succession)

CmdSetMode

public CmdSetMode(Class modeClass,
                  Hashtable modeArgs)
The constructor.

Parameters:
modeClass - the next global editor mode
modeArgs - arguments for the new mode

CmdSetMode

public CmdSetMode(Class modeClass,
                  Hashtable modeArgs,
                  String name)
The constructor.

Parameters:
modeClass - the next global editor mode
modeArgs - arguments for the new mode
name - the name of the command = tooltip text

CmdSetMode

public CmdSetMode(Class modeClass,
                  String arg,
                  Object value)
The constructor.

Parameters:
modeClass - the next global editor mode
arg - the name of a new argument for the new mode
value - the value of a new argument for the new mode

CmdSetMode

public CmdSetMode(Class modeClass,
                  String arg,
                  Object value,
                  String name)
The constructor.

Parameters:
modeClass - the next global editor mode
arg - the name of a new argument for the new mode
value - the value of a new argument for the new mode
name - the name of the command = tooltip text

CmdSetMode

public CmdSetMode(Class modeClass,
                  String arg,
                  Object value,
                  String name,
                  ImageIcon icon)
The constructor.

Parameters:
modeClass - the next global editor mode
arg - the name of a new argument for the new mode
value - the value of a new argument for the new mode
name - the name of the command = tooltip text
icon - the SMALL_ICON for the action
Method Detail

putToolTip

private void putToolTip(String name)
Adds tooltip text to the Action.



ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook