org.argouml.uml
Class ActionAddStereotype

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.argouml.ui.UndoableAction
          extended by org.argouml.uml.ActionAddStereotype
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ActionAddStereotype
extends UndoableAction

Action to add a sterotype to a collection of model elements.

See Also:
Serialized Form

Field Summary
 
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
ActionAddStereotype(java.util.Collection<java.lang.Object> coll, java.lang.Object st)
          Constructor.
ActionAddStereotype(java.lang.Object me, java.lang.Object st)
          Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 java.lang.Object getValue(java.lang.String key)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionAddStereotype

public ActionAddStereotype(java.lang.Object me,
                           java.lang.Object st)
Constructor.

Parameters:
me - The model element.
st - The stereotype.

ActionAddStereotype

public ActionAddStereotype(java.util.Collection<java.lang.Object> coll,
                           java.lang.Object st)
Constructor.

Parameters:
coll - The collection of model elements.
st - The stereotype.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class UndoableAction

getValue

public java.lang.Object getValue(java.lang.String key)
Specified by:
getValue in interface javax.swing.Action
Overrides:
getValue in class javax.swing.AbstractAction


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook