org.argouml.uml.ui.behavior.common_behavior
Class ActionAddInstanceClassifier

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.UMLAction
          extended byorg.argouml.uml.ui.AbstractActionAddModelElement
              extended byorg.argouml.uml.ui.behavior.common_behavior.ActionAddInstanceClassifier
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class ActionAddInstanceClassifier
extends AbstractActionAddModelElement

This action binds Instances to one or more Classifiers, which declare its structure and behaviour. An Object is defined as an instance of a Class, which explains why the type of Classifier is parameter to one of this action's constructors.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  Object choiceClass
           
 
Fields inherited from class org.argouml.uml.ui.AbstractActionAddModelElement
 
Fields inherited from class org.argouml.uml.ui.UMLAction
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
ActionAddInstanceClassifier()
          The constructor for ActionAddExtendExtensionPoint.
ActionAddInstanceClassifier(Object choice)
          The constructor for ActionAddExtendExtensionPoint.
 
Method Summary
protected  void doIt(Vector selected)
          The action that has to be done by Argouml after the user clicks ok in the UMLAddDialog.
protected  Vector getChoices()
          Returns the choices the user has in the UMLAddDialog.
protected  String getDialogTitle()
          Returns the title of the dialog.
protected  Vector getSelected()
          The modelelements allready selected BEFORE the dialog is shown.
 
Methods inherited from class org.argouml.uml.ui.AbstractActionAddModelElement
actionPerformed, getTarget, isEnabled, isExclusive, isMultiSelect, setExclusive, setMultiSelect, setTarget
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getValue, putValue, shouldBeEnabled, updateEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

choiceClass

private Object choiceClass
Constructor Detail

ActionAddInstanceClassifier

public ActionAddInstanceClassifier()
The constructor for ActionAddExtendExtensionPoint.


ActionAddInstanceClassifier

public ActionAddInstanceClassifier(Object choice)
The constructor for ActionAddExtendExtensionPoint. For an Object, the choice will be "Class", for any other Instance, it will be "Classifier".

Parameters:
choice - the classifier type we are adding
Method Detail

doIt

protected void doIt(Vector selected)
Description copied from class: AbstractActionAddModelElement
The action that has to be done by Argouml after the user clicks ok in the UMLAddDialog.

Specified by:
doIt in class AbstractActionAddModelElement
Parameters:
selected - The choices the user has selected in the UMLAddDialog
See Also:
AbstractActionAddModelElement.doIt(java.util.Vector)

getChoices

protected Vector getChoices()
Description copied from class: AbstractActionAddModelElement
Returns the choices the user has in the UMLAddDialog. The choices are depicted on the left side of the UMLAddDialog (sorry Arabic users) and can be moved via the buttons on the dialog to the right side. On the right side are the selected modelelements.

Specified by:
getChoices in class AbstractActionAddModelElement
Returns:
Vector
See Also:
AbstractActionAddModelElement.getChoices()

getDialogTitle

protected String getDialogTitle()
Description copied from class: AbstractActionAddModelElement
Returns the title of the dialog.

Specified by:
getDialogTitle in class AbstractActionAddModelElement
Returns:
String
See Also:
AbstractActionAddModelElement.getDialogTitle()

getSelected

protected Vector getSelected()
Description copied from class: AbstractActionAddModelElement
The modelelements allready selected BEFORE the dialog is shown.

Specified by:
getSelected in class AbstractActionAddModelElement
Returns:
Vector
See Also:
AbstractActionAddModelElement.getSelected()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook