|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectUndoableAction
org.argouml.uml.ui.AbstractActionAddModelElement2
public abstract class AbstractActionAddModelElement2
Abstract action that is the parent to all add actions that add the modelelements via the UMLAddDialog.
| Constructor Summary | |
|---|---|
protected |
AbstractActionAddModelElement2()
Construct an action to add a model element to some list. |
|
AbstractActionAddModelElement2(java.lang.String name)
Construct a named action to add a model element to some list. |
|
AbstractActionAddModelElement2(java.lang.String name,
javax.swing.Icon icon)
Construct an action to add a model element to some list with the given name and icon. |
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected abstract void |
doIt(java.util.Collection selected)
The action that has to be done by ArgoUml after the user clicks ok in the UMLAddDialog. |
protected abstract java.util.List |
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.List |
getSelected()
The modelelements already selected BEFORE the dialog is shown. |
protected java.lang.Object |
getTarget()
Returns the UML model 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(java.lang.Object theTarget)
Sets the UML model target. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractActionAddModelElement2()
public AbstractActionAddModelElement2(java.lang.String name)
name - name for action
public AbstractActionAddModelElement2(java.lang.String name,
javax.swing.Icon icon)
name - name for actionicon - icon for action| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
protected abstract java.util.List getChoices()
protected abstract java.util.List getSelected()
protected abstract void doIt(java.util.Collection selected)
selected - The choices the user has selected in the UMLAddDialogpublic boolean isEnabled()
protected java.lang.Object getTarget()
public void setTarget(java.lang.Object theTarget)
theTarget - The target to setprotected abstract java.lang.String getDialogTitle()
public boolean isExclusive()
public boolean isMultiSelect()
public void setExclusive(boolean theExclusive)
theExclusive - The exclusive to setpublic void setMultiSelect(boolean theMultiSelect)
theMultiSelect - The multiSelect to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |