org.argouml.uml.ui.behavior.collaborations
Class ActionAddMessagePredecessor

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.argouml.uml.ui.UMLAction
              |
              +--org.argouml.uml.ui.UMLChangeAction
                    |
                    +--org.argouml.uml.ui.AbstractActionAddModelElement
                          |
                          +--org.argouml.uml.ui.behavior.collaborations.ActionAddMessagePredecessor
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ActionAddMessagePredecessor
extends AbstractActionAddModelElement

Action to add a predecessor to some message.

Since:
Oct 2, 2002
See Also:
Serialized Form

Field Summary
static ActionAddMessagePredecessor SINGLETON
           
 
Fields inherited from class org.argouml.uml.ui.UMLAction
cat, HAS_ICON, NO_ICON
 
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 ActionAddMessagePredecessor()
          Constructor for ActionAddMessagePredecessor.
 
Method Summary
protected  void doIt(java.util.Vector selected)
          The action that has to be done by Argouml after the user clicks ok in the UMLAddDialog.
protected  java.util.Vector getChoices()
          Returns the choices the user has in the UMLAddDialog.
protected  java.lang.String getDialogTitle()
          Returns the title of the dialog.
protected  java.util.Vector getSelected()
          The modelelements allready selected BEFORE the dialog is shown.
 
Methods inherited from class org.argouml.uml.ui.AbstractActionAddModelElement
actionPerformed, getTarget, isEnabled, isExclusive, isMultiSelect, setExclusive, setMultiSelect, setTarget
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getShortcut, markNeedsSave, shouldBeEnabled, stripJunk, updateEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final ActionAddMessagePredecessor SINGLETON
Constructor Detail

ActionAddMessagePredecessor

protected ActionAddMessagePredecessor()
Constructor for ActionAddMessagePredecessor.
Method Detail

getChoices

protected java.util.Vector getChoices()
Description copied from class: AbstractActionAddModelElement
Returns the choices the user has in the UMLAddDialog. The choices are depicted on the left side of the UMLAddDialog (sorry Arabic users) and can be moved via the buttons on the dialog to the right side. On the right side are the selected modelelements.
Overrides:
getChoices in class AbstractActionAddModelElement
See Also:
AbstractActionAddModelElement.getChoices()

getSelected

protected java.util.Vector getSelected()
Description copied from class: AbstractActionAddModelElement
The modelelements allready selected BEFORE the dialog is shown.
Overrides:
getSelected in class AbstractActionAddModelElement
See Also:
AbstractActionAddModelElement.getSelected()

getDialogTitle

protected java.lang.String getDialogTitle()
Description copied from class: AbstractActionAddModelElement
Returns the title of the dialog.
Overrides:
getDialogTitle in class AbstractActionAddModelElement
See Also:
AbstractActionAddModelElement.getDialogTitle()

doIt

protected void doIt(java.util.Vector selected)
Description copied from class: AbstractActionAddModelElement
The action that has to be done by Argouml after the user clicks ok in the UMLAddDialog.
Overrides:
doIt in class AbstractActionAddModelElement
See Also:
AbstractActionAddModelElement.doIt(java.util.Vector)


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook