org.argouml.uml.ui
Class AbstractActionNewModelElement

java.lang.Object
  extended by UndoableAction
      extended by org.argouml.uml.ui.AbstractActionNewModelElement
Direct Known Subclasses:
ActionAddDataType, ActionAddEnumeration, ActionAddLiteral, ActionCreateContainedModelElement, ActionNewAction, ActionNewActionForMessage, ActionNewActor, ActionNewArgument, ActionNewClass, ActionNewCompositeState, ActionNewEvent, ActionNewException, ActionNewExtendExtensionPoint, ActionNewFinalState, ActionNewGuard, ActionNewInnerClass, ActionNewModelElementConstraint, ActionNewParameter, ActionNewPseudoState, ActionNewReception, ActionNewSignal, ActionNewSimpleState, ActionNewStereotype, ActionNewStubState, ActionNewSubmachineState, ActionNewSynchState, ActionNewTransition, ActionNewUseCase, ActionNewUseCaseExtensionPoint

public abstract class AbstractActionNewModelElement
extends UndoableAction

Since:
Oct 3, 2002

Constructor Summary
protected AbstractActionNewModelElement()
          The constructor.
protected AbstractActionNewModelElement(java.lang.String name)
          The constructor.
protected AbstractActionNewModelElement(java.lang.String name, javax.swing.Icon icon)
          The constructor.
 
Method Summary
 java.lang.Object getTarget()
          Returns the target.
 void setTarget(java.lang.Object theTarget)
          Sets the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractActionNewModelElement

protected AbstractActionNewModelElement()
The constructor. Defaults to name "action.new", global and NO_ICON


AbstractActionNewModelElement

protected AbstractActionNewModelElement(java.lang.String name)
The constructor.

Parameters:
name - the to be localized name of the action

AbstractActionNewModelElement

protected AbstractActionNewModelElement(java.lang.String name,
                                        javax.swing.Icon icon)
The constructor. This is provided for module developers to extend this action for their own purposes with their own icon.

Parameters:
name - the to be localized name of the action
the - icon to represent this action visually
Method Detail

getTarget

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

Returns:
ModelElement

setTarget

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

Parameters:
theTarget - The target to set


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook