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

Field Summary
 
Fields inherited from class org.argouml.uml.ui.UMLAction
cat, 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
protected AbstractActionRemoveElement()
          Constructor for AbstractActionRemoveElement.
protected AbstractActionRemoveElement(java.lang.String name)
           
 
Method Summary
 java.lang.Object getObjectToRemove()
          Returns the objectToRemove.
 java.lang.Object getTarget()
          Returns the target.
 boolean isEnabled()
           
 void setObjectToRemove(java.lang.Object objectToRemove)
          Sets the objectToRemove.
 void setTarget(java.lang.Object target)
          Sets the target.
 
Methods inherited from class org.argouml.uml.ui.UMLChangeAction
actionPerformed
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getShortcut, markNeedsSave, shouldBeEnabled, stripJunk, updateEnabled, updateEnabled
 
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
 

Constructor Detail

AbstractActionRemoveElement

protected AbstractActionRemoveElement()
Constructor for AbstractActionRemoveElement.


AbstractActionRemoveElement

protected AbstractActionRemoveElement(java.lang.String name)
Method Detail

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()


ArgoUML © 1996-2003 (20040216)ArgoUML Project HomeArgoUML Cookbook