org.argouml.uml.ui.behavior.activity_graphs
Class ActionAddEventAsTrigger
java.lang.Object
javax.swing.AbstractAction
org.argouml.ui.UndoableAction
org.argouml.uml.ui.AbstractActionAddModelElement2
org.argouml.uml.ui.behavior.activity_graphs.ActionAddEventAsTrigger
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ActionAddEventAsTrigger
- extends AbstractActionAddModelElement2
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
| 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 |
|
Method Summary |
protected void |
doIt(java.util.Collection selected)
The action that has to be done by ArgoUml after the user clicks ok in the
UMLAddDialog. |
protected java.util.List |
getChoices()
Returns the choices the user has in the UMLAddDialog. |
protected java.lang.String |
getDialogTitle()
Returns the title of the dialog. |
protected java.util.List |
getSelected()
The modelelements already selected BEFORE the dialog is shown. |
| 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 |
SINGLETON
public static final ActionAddEventAsTrigger SINGLETON
- The one and only instance of this class.
ActionAddEventAsTrigger
protected ActionAddEventAsTrigger()
- Constructor for ActionAddClassifierRoleBase.
getChoices
protected java.util.List getChoices()
- Description copied from class:
AbstractActionAddModelElement2
- 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 AbstractActionAddModelElement2
- Returns:
- List of choices
getSelected
protected java.util.List getSelected()
- Description copied from class:
AbstractActionAddModelElement2
- The modelelements already selected BEFORE the dialog is shown.
- Specified by:
getSelected in class AbstractActionAddModelElement2
- Returns:
- List of model elements
getDialogTitle
protected java.lang.String getDialogTitle()
- Description copied from class:
AbstractActionAddModelElement2
- Returns the title of the dialog.
- Specified by:
getDialogTitle in class AbstractActionAddModelElement2
- Returns:
- String
doIt
protected void doIt(java.util.Collection selected)
- Description copied from class:
AbstractActionAddModelElement2
- The action that has to be done by ArgoUml after the user clicks ok in the
UMLAddDialog.
- Specified by:
doIt in class AbstractActionAddModelElement2
- Parameters:
selected - The choices the user has selected in the UMLAddDialog