org.argouml.uml.ui.behavior.state_machines
Class ActionNewEvent

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.state_machines.ActionNewEvent
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
ActionNewCallEvent, ActionNewChangeEvent, ActionNewSignalEvent, ActionNewTimeEvent

public abstract class ActionNewEvent
extends AbstractActionNewModelElement

Since:
Dec 15, 2002
See Also:
Serialized Form

Nested Class Summary
static interface ActionNewEvent.Roles
           
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
static java.lang.String ROLE
          The constant defining the role the event 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 ActionNewEvent()
          Constructor for ActionNewEvent.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Perform the work the action is supposed to do.
protected abstract  java.lang.Object createEvent()
          Implementors should create a concrete event like an instance of SignalEvent 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 event to be created plays for its parent. For example, if one wishes to create a trigger event for a transition, this is filled with "trigger". The values are defined in the interface Roles

See Also:
Constant Field Values
Constructor Detail

ActionNewEvent

protected ActionNewEvent()
Constructor for ActionNewEvent.

Method Detail

createEvent

protected abstract java.lang.Object createEvent()
Implementors should create a concrete event like an instance of SignalEvent 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