org.argouml.uml.ui.behavior.use_cases
Class UMLExtendedUseCasesListModel
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--org.argouml.uml.ui.UMLModelElementListModel
|
+--org.argouml.uml.ui.UMLBinaryRelationListModel
|
+--org.argouml.uml.ui.behavior.use_cases.UMLExtendedUseCasesListModel
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.ListModel, ru.novosoft.uml.MElementListener, NotationContext, java.io.Serializable, UMLUserInterfaceComponent
- public class UMLExtendedUseCasesListModel
- extends UMLBinaryRelationListModel
- Since:
- Sep 30, 2002
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Method Summary |
protected void |
build(ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
Builds a relation between two modelelements. |
protected void |
connect(org.tigris.gef.graph.MutableGraphModel gm,
ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
Connects two modelelements. |
protected java.lang.String |
getAddDialogTitle()
Returns the title of the add dialog |
protected java.util.Collection |
getChoices()
Gets the collection of modelelements a user can select from (left pane
in UMLAddDialog) |
protected ru.novosoft.uml.foundation.core.MModelElement |
getRelation(ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
Gets the relation between two modelelements. |
protected java.util.Collection |
getSelected()
Gets the collection of modelelements that are allready selected before
the add method is called |
protected ru.novosoft.uml.foundation.core.MModelElement |
getSource()
The source of the relation to be layed out. |
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel |
addAtUtil, elementAtUtil, formatElement, getContainer, getContextNotation, getElementAt, getModelElementSize, getProperty, getSize, getTarget, getUpperBound, listRoleItemSet, moveDownUtil, moveUpUtil, navigateTo, open, propertySet, recovered, removed, resetSize, roleAdded, roleRemoved, setUpperBound, targetChanged, targetReasserted |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMLExtendedUseCasesListModel
public UMLExtendedUseCasesListModel(UMLUserInterfaceContainer container,
java.lang.String property,
boolean showNone)
- Constructor for UMLExtendedUseCasesListModel.
- Parameters:
container
- property
- showNone
-
getChoices
protected java.util.Collection getChoices()
- Description copied from class:
UMLBinaryRelationListModel
- Gets the collection of modelelements a user can select from (left pane
in UMLAddDialog)
- Overrides:
getChoices
in class UMLBinaryRelationListModel
- See Also:
UMLBinaryRelationListModel.getChoices()
getSelected
protected java.util.Collection getSelected()
- Description copied from class:
UMLBinaryRelationListModel
- Gets the collection of modelelements that are allready selected before
the add method is called
- Overrides:
getSelected
in class UMLBinaryRelationListModel
- See Also:
UMLBinaryRelationListModel.getSelected()
getAddDialogTitle
protected java.lang.String getAddDialogTitle()
- Description copied from class:
UMLBinaryRelationListModel
- Returns the title of the add dialog
- Overrides:
getAddDialogTitle
in class UMLBinaryRelationListModel
- See Also:
UMLBinaryRelationListModel.getAddDialogTitle()
connect
protected void connect(org.tigris.gef.graph.MutableGraphModel gm,
ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
- Description copied from class:
UMLBinaryRelationListModel
- Connects two modelelements. The only implementation of this class could be
something simple as gm.connect(from, to). This method is only abstract since
in some cases gm.connect(to, from) may be necessary.
- Overrides:
connect
in class UMLBinaryRelationListModel
- See Also:
UMLBinaryRelationListModel.connect(MutableGraphModel, MModelElement, MModelElement)
build
protected void build(ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
- Description copied from class:
UMLBinaryRelationListModel
- Builds a relation between two modelelements. A relation is for example
an association or a generalization relationship. Only builds the modelelement,
not the graphics.
- Overrides:
build
in class UMLBinaryRelationListModel
- See Also:
UMLBinaryRelationListModel.build(MModelElement, MModelElement)
getRelation
protected ru.novosoft.uml.foundation.core.MModelElement getRelation(ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
- Description copied from class:
UMLBinaryRelationListModel
- Gets the relation between two modelelements. Implementations should
delegate to utility methods provided in the helpers like CoreHelper
- Overrides:
getRelation
in class UMLBinaryRelationListModel
- See Also:
UMLBinaryRelationListModel.getRelation(MModelElement, MModelElement)
getSource
protected ru.novosoft.uml.foundation.core.MModelElement getSource()
- Description copied from class:
UMLBinaryRelationListModel
The source of the relation to be layed out. For example, in an association
this is one of the classifiers to be connected. Normally users of this class
do not have to override this. Only when the target of the container is
different then the source of the relation, this must be overriden.
- Overrides:
getSource
in class UMLBinaryRelationListModel
- See Also:
UMLBinaryRelationListModel.getSource()