org.argouml.uml.ui
Class AbstractActionRemoveElement

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.argouml.ui.UndoableAction
          extended by org.argouml.uml.ui.AbstractActionRemoveElement
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
ActionRemoveArgument, ActionRemoveClassifierRoleBase, ActionRemoveModelElement

public class AbstractActionRemoveElement
extends UndoableAction

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 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)
          The constructor.
 
Method Summary
 java.lang.Object getObjectToRemove()
          Returns the objectToRemove.
 java.lang.Object getTarget()
          Returns the target.
 boolean isEnabled()
           
 void setObjectToRemove(java.lang.Object theObjectToRemove)
          Sets the objectToRemove.
 void setTarget(java.lang.Object theTarget)
          Sets the target.
 
Methods inherited from class org.argouml.ui.UndoableAction
actionPerformed
 
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)
The constructor.

Parameters:
name - the name for this action
Method Detail

getTarget

public java.lang.Object getTarget()
Returns the target.

Returns:
MModelElement

setTarget

public void setTarget(java.lang.Object theTarget)
Sets the target.

Parameters:
theTarget - The target to set

getObjectToRemove

public java.lang.Object getObjectToRemove()
Returns the objectToRemove.

Returns:
Object

setObjectToRemove

public void setObjectToRemove(java.lang.Object theObjectToRemove)
Sets the objectToRemove.

Parameters:
theObjectToRemove - The objectToRemove to set

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface javax.swing.Action
Overrides:
isEnabled in class javax.swing.AbstractAction


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook