|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.ui.AbstractActionAddModelElement
Abstract action that is the parent to all add actions that add the modelelements via the UMLAddDialog.
Nested Class Summary |
Nested classes inherited from class javax.swing.AbstractAction |
|
Field Summary | |
private boolean |
exclusive
|
private boolean |
multiSelect
|
private Object |
target
|
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 | |
protected |
AbstractActionAddModelElement()
The constructor. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Perform the work the action is supposed to do. |
protected abstract void |
doIt(Vector selected)
The action that has to be done by Argouml after the user clicks ok in the UMLAddDialog. |
protected abstract Vector |
getChoices()
Returns the choices the user has in the UMLAddDialog. |
protected abstract String |
getDialogTitle()
Returns the title of the dialog. |
protected abstract Vector |
getSelected()
The modelelements allready selected BEFORE the dialog is shown. |
protected Object |
getTarget()
Returns the target. |
boolean |
isEnabled()
|
boolean |
isExclusive()
Returns the exclusive. |
boolean |
isMultiSelect()
Returns the multiSelect. |
void |
setExclusive(boolean theExclusive)
Sets the exclusive. |
void |
setMultiSelect(boolean theMultiSelect)
Sets the multiSelect. |
void |
setTarget(Object theTarget)
Sets the target. |
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 |
private Object target
private boolean multiSelect
private boolean exclusive
Constructor Detail |
protected AbstractActionAddModelElement()
Method Detail |
protected Object getTarget()
public void setTarget(Object theTarget)
theTarget
- The target to setpublic void actionPerformed(ActionEvent e)
UMLAction
actionPerformed
in interface ActionListener
actionPerformed
in class UMLAction
ActionListener.actionPerformed(java.awt.event.ActionEvent)
protected abstract Vector getChoices()
protected abstract Vector getSelected()
protected abstract String getDialogTitle()
protected abstract void doIt(Vector selected)
selected
- The choices the user has selected in the UMLAddDialogpublic boolean isExclusive()
public boolean isMultiSelect()
public void setExclusive(boolean theExclusive)
theExclusive
- The exclusive to setpublic void setMultiSelect(boolean theMultiSelect)
theMultiSelect
- The multiSelect to setpublic boolean isEnabled()
isEnabled
in interface Action
isEnabled
in class UMLAction
Action.isEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |