|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractListModel | +--org.argouml.uml.ui.UMLModelElementListModel | +--org.argouml.uml.ui.UMLModelElementCachedListModel
UMLModelElementListModel2
,
this class is part of the 'old'(pre 0.13.*) implementation of proppanels
that used reflection a lot.
Field Summary |
Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel |
_upper, NO_LIMIT |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
UMLModelElementCachedListModel(UMLUserInterfaceContainer container,
java.lang.String property,
boolean showNone)
Deprecated. |
Method Summary | |
protected java.util.List |
addElement(java.util.Collection source,
int index,
MModelElement newElement,
java.lang.Object element)
Deprecated. addElement method uses ListIterator and because we pass in the Object element (name of the element after which we want to insert the newElement) we can iterate down the list until we find the correct insertion point. |
protected java.util.List |
buildCache()
Deprecated. |
protected abstract java.util.List |
getCache()
Deprecated. |
protected MModelElement |
getModelElementAt(int index)
Deprecated. This method returns the model element that corresponds to to the specific index. |
abstract boolean |
isProperClass(java.lang.Object obj)
Deprecated. |
void |
listRoleItemSet(MElementEvent p1)
Deprecated. |
void |
propertySet(MElementEvent event)
Deprecated. |
protected int |
recalcModelElementSize()
Deprecated. This method is called from getModelElementSize when the list size has been marked as invalid. |
void |
recovered(MElementEvent p1)
Deprecated. |
void |
removed(MElementEvent event)
Deprecated. |
protected abstract void |
resetCache()
Deprecated. |
void |
roleAdded(MElementEvent event)
Deprecated. |
void |
roleRemoved(MElementEvent event)
Deprecated. |
protected java.util.List |
swap(java.util.Collection source,
int lowIndex,
java.lang.Object first,
java.lang.Object second)
Deprecated. Swap two items in a Collection. |
void |
targetChanged()
Deprecated. This method is called when the target of a UMLUserInterfaceContainer has been changed. |
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel |
addAtUtil, buildPopup, delete, elementAtUtil, formatElement, getContainer, getContextNotation, getElementAt, getModelElementSize, getProperty, getSize, getTarget, getUpperBound, moveDownUtil, moveUpUtil, navigateTo, open, resetSize, setUpperBound, 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 UMLModelElementCachedListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone)
Method Detail |
protected abstract void resetCache()
protected abstract java.util.List getCache()
public abstract boolean isProperClass(java.lang.Object obj)
protected int recalcModelElementSize()
UMLModelElementListModel
recalcModelElementSize
in class UMLModelElementListModel
protected MModelElement getModelElementAt(int index)
UMLModelElementListModel
getModelElementAt
in class UMLModelElementListModel
index
- index of model element (zero based).
public void targetChanged()
UMLUserInterfaceComponent
targetChanged
in interface UMLUserInterfaceComponent
targetChanged
in class UMLModelElementListModel
UMLUserInterfaceComponent.targetChanged()
public void roleRemoved(MElementEvent event)
roleRemoved
in class UMLModelElementListModel
public void roleAdded(MElementEvent event)
roleAdded
in class UMLModelElementListModel
ru.novosoft.uml.MElementListener#roleAdded(MElementEvent)
public void recovered(MElementEvent p1)
recovered
in class UMLModelElementListModel
public void listRoleItemSet(MElementEvent p1)
listRoleItemSet
in class UMLModelElementListModel
public void removed(MElementEvent event)
removed
in class UMLModelElementListModel
public void propertySet(MElementEvent event)
propertySet
in class UMLModelElementListModel
protected java.util.List swap(java.util.Collection source, int lowIndex, java.lang.Object first, java.lang.Object second)
protected java.util.List addElement(java.util.Collection source, int index, MModelElement newElement, java.lang.Object element)
source
- underlying collection of attributes and operations.index
- location of the element within the list box.newElement
- element to be added.element
- element at position before the add point (or null to add as first).
protected java.util.List buildCache()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20030919) | ArgoUML Project Home | ArgoUML Cookbook |