org.argouml.uml.ui.behavior.common_behavior
Class ActionNewAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.UMLAction
          extended byorg.argouml.uml.ui.UMLChangeAction
              extended byorg.argouml.uml.ui.AbstractActionNewModelElement
                  extended byorg.argouml.uml.ui.behavior.common_behavior.ActionNewAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.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
           
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
static java.lang.String ROLE
          The constant defining the role the action to be created plays for its parent.
 
Fields inherited from class org.argouml.uml.ui.AbstractActionNewModelElement
 
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 ActionNewAction()
          Constructor for ActionNewAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Perform the work the action is supposed to do.
protected abstract  java.lang.Object createAction()
          Implementors should create a concrete action like a CallAction in this method.
 
Methods inherited from class org.argouml.uml.ui.AbstractActionNewModelElement
getTarget, setTarget
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getShortcut, getValue, isEnabled, markNeedsSave, putValue, shouldBeEnabled, stripJunk, updateEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE

public static final java.lang.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
Constructor Detail

ActionNewAction

protected ActionNewAction()
Constructor for ActionNewAction.

Method Detail

createAction

protected abstract java.lang.Object createAction()
Implementors should create a concrete action like a CallAction in this method.

Returns:
Object

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from class: UMLAction
Perform the work the action is supposed to do.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class UMLChangeAction
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook