org.argouml.uml.diagram.ui
Class ActionMultiplicity

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.undo.UndoableAction
          extended byorg.argouml.uml.diagram.ui.ActionMultiplicity
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class ActionMultiplicity
extends org.tigris.gef.undo.UndoableAction

Action to set the Multiplicity.

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
protected ActionMultiplicity(String m, String s)
          The Constructor.
 
Method Summary
 void actionPerformed(ActionEvent ae)
           
static org.tigris.gef.undo.UndoableAction getDestMultOne()
           
static org.tigris.gef.undo.UndoableAction getDestMultOneToMany()
           
static org.tigris.gef.undo.UndoableAction getDestMultZeroToMany()
           
static org.tigris.gef.undo.UndoableAction getDestMultZeroToOne()
           
static org.tigris.gef.undo.UndoableAction getSrcMultOne()
           
static org.tigris.gef.undo.UndoableAction getSrcMultOneToMany()
           
static org.tigris.gef.undo.UndoableAction getSrcMultZeroToMany()
           
static org.tigris.gef.undo.UndoableAction getSrcMultZeroToOne()
           
 boolean isEnabled()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionMultiplicity

protected ActionMultiplicity(String m,
                             String s)
The Constructor.

Parameters:
m - the multiplicity
s - "src" or "dest". Anything else is interpreted as "dest".
Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)

isEnabled

public boolean isEnabled()
Returns:
true if the action is enabled
See Also:
AbstractAction.isEnabled()

getSrcMultOne

public static org.tigris.gef.undo.UndoableAction getSrcMultOne()
Returns:
Returns the srcMultOne.

getDestMultOne

public static org.tigris.gef.undo.UndoableAction getDestMultOne()
Returns:
Returns the destMultOne.

getSrcMultZeroToOne

public static org.tigris.gef.undo.UndoableAction getSrcMultZeroToOne()
Returns:
Returns the srcMultZeroToOne.

getDestMultZeroToOne

public static org.tigris.gef.undo.UndoableAction getDestMultZeroToOne()
Returns:
Returns the destMultZeroToOne.

getSrcMultZeroToMany

public static org.tigris.gef.undo.UndoableAction getSrcMultZeroToMany()
Returns:
Returns the srcMultZeroToMany.

getDestMultZeroToMany

public static org.tigris.gef.undo.UndoableAction getDestMultZeroToMany()
Returns:
Returns the destMultZeroToMany.

getSrcMultOneToMany

public static org.tigris.gef.undo.UndoableAction getSrcMultOneToMany()
Returns:
Returns the srcMultOneToMany.

getDestMultOneToMany

public static org.tigris.gef.undo.UndoableAction getDestMultOneToMany()
Returns:
Returns the destMultOneToMany.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook