org.argouml.uml.ui.foundation.core
Class ActionAddAttribute
java.lang.Object
javax.swing.AbstractAction
org.argouml.ui.UndoableAction
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
| 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 |
| 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 |
ActionAddAttribute
public ActionAddAttribute()
- The constructor for this class.
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