|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--org.argouml.uml.ui.UMLAction | +--org.argouml.uml.ui.UMLChangeAction | +--org.argouml.uml.ui.AbstractActionAddModelElement
Abstract action that is the parent to all add actions that add the modelelements via the UMLAddDialog.
Field Summary |
---|
Fields inherited from class org.argouml.uml.ui.UMLAction |
---|
cat, 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()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Perform the work the action is supposed to do. |
protected abstract void |
doIt(java.util.Vector selected)
The action that has to be done by Argouml after the user clicks ok in the UMLAddDialog. |
protected abstract java.util.Vector |
getChoices()
Returns the choices the user has in the UMLAddDialog. |
protected abstract java.lang.String |
getDialogTitle()
Returns the title of the dialog. |
protected abstract java.util.Vector |
getSelected()
The modelelements allready selected BEFORE the dialog is shown. |
MModelElement |
getTarget()
Returns the target. |
boolean |
isEnabled()
|
boolean |
isExclusive()
Returns the exclusive. |
boolean |
isMultiSelect()
Returns the multiSelect. |
void |
setExclusive(boolean exclusive)
Sets the exclusive. |
void |
setMultiSelect(boolean multiSelect)
Sets the multiSelect. |
void |
setTarget(MModelElement target)
Sets the target. |
Methods inherited from class org.argouml.uml.ui.UMLAction |
---|
getMnemonic, getShortcut, markNeedsSave, shouldBeEnabled, stripJunk, updateEnabled, updateEnabled |
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 |
protected AbstractActionAddModelElement()
Method Detail |
public MModelElement getTarget()
public void setTarget(MModelElement target)
target
- The target to setpublic void actionPerformed(java.awt.event.ActionEvent e)
UMLAction
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class UMLChangeAction
ActionListener.actionPerformed(java.awt.event.ActionEvent)
protected abstract java.util.Vector getChoices()
protected abstract java.util.Vector getSelected()
protected abstract java.lang.String getDialogTitle()
protected abstract void doIt(java.util.Vector selected)
selected
- The choices the user has selected in the UMLAddDialogpublic boolean isExclusive()
public boolean isMultiSelect()
public void setExclusive(boolean exclusive)
exclusive
- The exclusive to setpublic void setMultiSelect(boolean multiSelect)
multiSelect
- The multiSelect to setpublic boolean isEnabled()
isEnabled
in interface javax.swing.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-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |