org.argouml.uml.diagram.ui
Class ActionAddAssociationRole

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

public class ActionAddAssociationRole
extends CmdSetMode

The ActionAddAssociation class is for creating a dummy link with a stimulus and a given action type. This is done in one step when a new edge between two nodes is instanciated Created on 15 February 2003, 01:01

See Also:
Serialized Form

Field Summary
 
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
ActionAddAssociationRole(Object aggregationKind, boolean unidirectional, String name)
          Construct a new ActionAddAssociationRole.
ActionAddAssociationRole(Object aggregationKind, boolean unidirectional, String name, String iconName)
          The constructor.
 
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
 

Constructor Detail

ActionAddAssociationRole

public ActionAddAssociationRole(Object aggregationKind,
                                boolean unidirectional,
                                String name)
Construct a new ActionAddAssociationRole.

Parameters:
aggregationKind - the required aggregation for the association.
unidirectional - true if this is to create a unidirectional association
name - the action description

ActionAddAssociationRole

public ActionAddAssociationRole(Object aggregationKind,
                                boolean unidirectional,
                                String name,
                                String iconName)
The constructor.

Parameters:
aggregationKind - the required aggregation for the association.
unidirectional - true if this is to create a unidirectional association
name - the action description
iconName - the name of the icon file


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook