|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
org.argouml.uml.ui.UMLModelElementListModel
org.argouml.uml.ui.UMLBinaryRelationListModel
PropPanelClassifier.getAssociationEndScroll()
,
this class is part of the 'old'(pre 0.13.*) implementation of proppanels
that used reflection a lot.
The base class for models behind scrollpanes for binary relations like the association pane on PropPanelUsecase
Field Summary |
Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel |
_upper, NO_LIMIT |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
UMLBinaryRelationListModel(UMLUserInterfaceContainer container,
java.lang.String property,
boolean showNone)
Deprecated. Constructor for UMLBinaryConnectionListModel. |
Method Summary | |
void |
add(int index)
Deprecated. |
protected abstract void |
build(ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
Deprecated. Builds a relation between two modelelements. |
boolean |
buildPopup(javax.swing.JPopupMenu popup,
int index)
Deprecated. This method builds a context (pop-up) menu for the list. |
protected abstract void |
connect(org.tigris.gef.graph.MutableGraphModel gm,
ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
Deprecated. Connects two modelelements. |
void |
delete(int index)
Deprecated. Standard delete method. |
protected abstract java.lang.String |
getAddDialogTitle()
Deprecated. Returns the title of the add dialog |
protected abstract java.util.Collection |
getChoices()
Deprecated. Gets the collection of modelelements a user can select from (left pane in UMLAddDialog) |
protected ru.novosoft.uml.foundation.core.MModelElement |
getModelElementAt(int index)
Deprecated. This method returns the model element that corresponds to to the specific index. |
protected abstract ru.novosoft.uml.foundation.core.MModelElement |
getRelation(ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
Deprecated. Gets the relation between two modelelements. |
protected abstract java.util.Collection |
getSelected()
Deprecated. Gets the collection of modelelements that are allready selected before the add method is called |
protected ru.novosoft.uml.foundation.core.MModelElement |
getSource()
Deprecated. The source of the relation to be layed out. |
protected int |
recalcModelElementSize()
Deprecated. This method is called from getModelElementSize when the list size has been marked as invalid. |
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel |
addAtUtil, addAtUtil, elementAtUtil, formatElement, getContainer, getContextNotation, getElementAt, getModelElementSize, getProperty, getSize, getTarget, getUpperBound, listRoleItemSet, moveDownUtil, moveUpUtil, navigateTo, navigateTo, open, propertySet, recovered, removed, resetSize, roleAdded, roleRemoved, setUpperBound, targetChanged, targetReasserted |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UMLBinaryRelationListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone)
container
- property
- showNone
- Method Detail |
public void add(int index)
add(int)
public void delete(int index)
UMLModelElementListModel
delete
in class UMLModelElementListModel
index
- UMLModelElementListModel.delete(int)
protected abstract java.util.Collection getChoices()
protected abstract java.util.Collection getSelected()
protected abstract java.lang.String getAddDialogTitle()
protected abstract void connect(org.tigris.gef.graph.MutableGraphModel gm, ru.novosoft.uml.foundation.core.MModelElement from, ru.novosoft.uml.foundation.core.MModelElement to)
from
- to
- protected abstract void build(ru.novosoft.uml.foundation.core.MModelElement from, ru.novosoft.uml.foundation.core.MModelElement to)
from
- to
- protected abstract ru.novosoft.uml.foundation.core.MModelElement getRelation(ru.novosoft.uml.foundation.core.MModelElement from, ru.novosoft.uml.foundation.core.MModelElement to)
from
- to
-
public boolean buildPopup(javax.swing.JPopupMenu popup, int index)
UMLModelElementListModel
buildPopup
in class UMLModelElementListModel
popup
- popup menuindex
- index of selected list item
UMLModelElementListModel.buildPopup(JPopupMenu, int)
protected ru.novosoft.uml.foundation.core.MModelElement getModelElementAt(int index)
UMLModelElementListModel
getModelElementAt
in class UMLModelElementListModel
index
- index of model element (zero based).
UMLModelElementListModel.getModelElementAt(int)
protected int recalcModelElementSize()
UMLModelElementListModel
recalcModelElementSize
in class UMLModelElementListModel
UMLModelElementListModel.recalcModelElementSize()
protected ru.novosoft.uml.foundation.core.MModelElement getSource()
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030829) | ArgoUML Project Home | ArgoUML Cookbook |