org.argouml.uml.ui
Class ActionDeleteModelElements

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.undo.UndoableAction
          extended byorg.argouml.uml.ui.ActionDeleteModelElements
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class ActionDeleteModelElements
extends org.tigris.gef.undo.UndoableAction

Action for removing objects from the model. Objects can be Modelelements, Diagrams (argodiagram and it's children), Figs without owner,...

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
ActionDeleteModelElements()
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent ae)
           
static boolean sureRemove(Object target)
          A utility method that asks the user if he is sure to remove the selected target.
protected static boolean sureRemoveModelElement(Object me)
          An utility method that asks the user if he is sure to remove a selected model element.
 
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
 

Constructor Detail

ActionDeleteModelElements

public ActionDeleteModelElements()
Constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)

sureRemove

public static boolean sureRemove(Object target)
A utility method that asks the user if he is sure to remove the selected target.

Parameters:
target - the object that will be removed
Returns:
boolean

sureRemoveModelElement

protected static boolean sureRemoveModelElement(Object me)
An utility method that asks the user if he is sure to remove a selected model element.

Parameters:
me - the modelelement that may be removed
Returns:
boolean


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook