org.argouml.uml.diagram.ui
Class ActionAddStereotype

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.undo.UndoableAction
          extended byorg.argouml.uml.ui.UMLAction
              extended byorg.argouml.uml.diagram.ui.ActionAddStereotype
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

class ActionAddStereotype
extends UMLAction

Action to add a sterotype to a model element.


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private static Logger LOG
          Logger.
private  Object modelElement
           
private  Object stereotype
           
 
Fields inherited from class org.argouml.uml.ui.UMLAction
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
ActionAddStereotype(Object modelElement, Object stereotype)
           
 
Method Summary
 void actionPerformed(ActionEvent ae)
           
 Object getValue(String key)
          Gets one of this object's properties using the associated key.
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, isEnabled, oldActionPerformed, putValue, shouldBeEnabled, 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

LOG

private static final Logger LOG
Logger.


modelElement

private Object modelElement

stereotype

private Object stereotype
Constructor Detail

ActionAddStereotype

public ActionAddStereotype(Object modelElement,
                           Object stereotype)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)

getValue

public Object getValue(String key)
Description copied from class: UMLAction
Gets one of this object's properties using the associated key.

Specified by:
getValue in interface Action
Overrides:
getValue in class UMLAction
Parameters:
key - the name of the property.
Returns:
the value of the property.
See Also:
UMLAction.putValue(String, Object)


ArgoUML © 1996-2005ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook