org.argouml.uml.ui.foundation.core
Class ActionAddAttribute

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

public class ActionAddAttribute
extends UndoableAction

Action to add an attribute to a Classifier or AssociationEnd.

This class shall be the only one that knows when this tool should be downlighted or not.

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
ActionAddAttribute()
          The constructor for this class.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
static ActionAddAttribute getTargetFollower()
           
 boolean shouldBeEnabled()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionAddAttribute

public ActionAddAttribute()
The constructor for this class.

Method Detail

getTargetFollower

public static ActionAddAttribute getTargetFollower()

actionPerformed

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

shouldBeEnabled

public boolean shouldBeEnabled()
Returns:
true if this tool should be enabled


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook