org.argouml.uml.ui.behavior.activity_graphs
Class ActionAddEventAsTrigger

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

public class ActionAddEventAsTrigger
extends AbstractActionAddModelElement

Provide a dialog which helps the user to select one event out of an existing list, which will be used as the trigger of the transition.

See Also:
Serialized Form

Field Summary
static ActionAddEventAsTrigger SINGLETON
          The one and only instance of this class.
 
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 ActionAddEventAsTrigger()
          Constructor for ActionAddClassifierRoleBase.
 
Method Summary
protected  void doIt(Vector selected)
          The action that has to be done by ArgoUml after the user clicks ok in the UMLAddDialog.
protected  Vector getChoices()
          Returns the choices the user has in the UMLAddDialog.
protected  String getDialogTitle()
          Returns the title of the dialog.
protected  Vector getSelected()
          The modelelements already 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 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
 

Field Detail

SINGLETON

public static final ActionAddEventAsTrigger SINGLETON
The one and only instance of this class.

Constructor Detail

ActionAddEventAsTrigger

protected ActionAddEventAsTrigger()
Constructor for ActionAddClassifierRoleBase.

Method Detail

getChoices

protected 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.

Specified by:
getChoices in class AbstractActionAddModelElement
Returns:
Vector

getSelected

protected Vector getSelected()
Description copied from class: AbstractActionAddModelElement
The modelelements already selected BEFORE the dialog is shown.

Specified by:
getSelected in class AbstractActionAddModelElement
Returns:
Vector

getDialogTitle

protected String getDialogTitle()
Description copied from class: AbstractActionAddModelElement
Returns the title of the dialog.

Specified by:
getDialogTitle in class AbstractActionAddModelElement
Returns:
String

doIt

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

Specified by:
doIt in class AbstractActionAddModelElement
Parameters:
selected - The choices the user has selected in the UMLAddDialog


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook