org.argouml.uml.ui.behavior.common_behavior
Class ActionNewAction
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.ui.AbstractActionNewModelElement
org.argouml.uml.ui.behavior.common_behavior.ActionNewAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Direct Known Subclasses:
- ActionNewCallAction, ActionNewCreateAction, ActionNewDestroyAction, ActionNewReturnAction, ActionNewSendAction, ActionNewTerminateAction, ActionNewUninterpretedAction
- public abstract class ActionNewAction
- extends AbstractActionNewModelElement
- Since:
- Dec 15, 2002
- See Also:
- Serialized Form
Nested Class Summary |
static interface |
ActionNewAction.Roles
Contains the roles definitions for UML actions. |
Field Summary |
static String |
ROLE
The constant defining the role the action
to be created plays for its parent. |
Constructor Summary |
protected |
ActionNewAction()
Constructor for ActionNewAction. |
ROLE
public static final String ROLE
- The constant defining the role the action
to be created plays for its parent.
For example, if one wishes to create
an entry action for a state, this is
filled with "entry". The values are defined
in the interface Roles
- See Also:
- Constant Field Values
ActionNewAction
protected ActionNewAction()
- Constructor for ActionNewAction.
createAction
protected abstract Object createAction()
- Implementors should create a concrete action like
a CallAction in this method.
- Returns:
- Object
actionPerformed
public void actionPerformed(ActionEvent e)
- Description copied from class:
UMLAction
- Perform the work the action is supposed to do.
This method needs to be overridden by all actions,
since it only shows a fake progressbar...
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class UMLAction
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
getAction
public static Object getAction(String role,
Object t)
- Parameters:
role
- the role the action playst
- the transition or state to get the action for
- Returns:
- the action