org.argouml.uml.ui
Class AbstractActionRemoveElement
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.argouml.uml.ui.UMLAction
|
+--org.argouml.uml.ui.UMLChangeAction
|
+--org.argouml.uml.ui.AbstractActionRemoveElement
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- Direct Known Subclasses:
- ActionRemoveClassifierRoleBase, ActionRemoveModelElement
- public class AbstractActionRemoveElement
- extends UMLChangeAction
Base class for remove actions. Remove actions can remove an element from the
model. This can either be a total remove ('erase from model') or just a
remove from a list of bases as in the case of classifierrole bases.
- Since:
- Jan 25, 2003
- 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, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractActionRemoveElement
protected AbstractActionRemoveElement()
- Constructor for AbstractActionRemoveElement.
AbstractActionRemoveElement
protected AbstractActionRemoveElement(java.lang.String name)
getTarget
public java.lang.Object getTarget()
- Returns the target.
- Returns:
- MModelElement
setTarget
public void setTarget(java.lang.Object target)
- Sets the target.
- Parameters:
target
- The target to set
getObjectToRemove
public java.lang.Object getObjectToRemove()
- Returns the objectToRemove.
- Returns:
- Object
setObjectToRemove
public void setObjectToRemove(java.lang.Object objectToRemove)
- Sets the objectToRemove.
- Parameters:
objectToRemove
- The objectToRemove to set
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface javax.swing.Action
- Overrides:
isEnabled
in class UMLAction
- See Also:
Action.isEnabled()