org.argouml.uml.ui
Class AbstractActionRemoveElement
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.ui.AbstractActionRemoveElement
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Direct Known Subclasses:
- ActionRemoveClassifierRoleBase, ActionRemoveModelElement
- public class AbstractActionRemoveElement
- extends UMLAction
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
Field Summary |
private Object |
objectToRemove
|
private Object |
target
The object that owns the object that must be removed (the
object that is the target of the projectbrowser in most cases). |
target
private Object target
- The object that owns the object that must be removed (the
object that is the target of the projectbrowser in most cases).
objectToRemove
private Object objectToRemove
AbstractActionRemoveElement
protected AbstractActionRemoveElement()
- Constructor for AbstractActionRemoveElement.
AbstractActionRemoveElement
protected AbstractActionRemoveElement(String name)
- The constructor.
- Parameters:
name
- the name for this action
getTarget
public Object getTarget()
- Returns the target.
- Returns:
- MModelElement
setTarget
public void setTarget(Object theTarget)
- Sets the target.
- Parameters:
theTarget
- The target to set
getObjectToRemove
public Object getObjectToRemove()
- Returns the objectToRemove.
- Returns:
- Object
setObjectToRemove
public void setObjectToRemove(Object theObjectToRemove)
- Sets the objectToRemove.
- Parameters:
theObjectToRemove
- The objectToRemove to set
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface Action
- Overrides:
isEnabled
in class UMLAction
- See Also:
Action.isEnabled()