|
||||||||||||
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 | +--org.argouml.uml.ui.UMLOwnedElementListModel
UMLNamespaceOwnedElementListModel
,
this class is part of the 'old'(pre 0.13.*) implementation of proppanels
that used reflection a lot.
This class implements is a abstract base for UMLPackagesListModel, UMLClassifiersListModel and other classes that display a subset of the owned elements of a namespace.
UMLModelElementListModel
,
UMLList
,
Serialized FormField Summary |
---|
Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel |
---|
_upper, NO_LIMIT |
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
UMLOwnedElementListModel(UMLUserInterfaceContainer container,
java.lang.String property,
boolean showNone)
Deprecated. Creates a new packages list model |
Method Summary | |
---|---|
void |
add(int index)
Deprecated. Adds a new element, updating both the cache and underlying collection and navigating to new attribute. |
void |
addElement(MModelElement element,
int index)
Deprecated. |
void |
delete(int index)
Deprecated. Deletes a specific attribute from both the cache and underlying collection. |
protected java.util.List |
getCache()
Deprecated. returns the cache of model elements, rebuilding the cache if invalidated. |
java.util.Collection |
getRawCollection()
Deprecated. returns the raw underlying collection from the current target of the container. |
boolean |
isProperClass(java.lang.Object obj)
Deprecated. Called to determine if a particular feauture of the underlying collection should be in the cached list of model elements. |
void |
moveDown(int index)
Deprecated. Moves an attribute down in the underlying collection. |
void |
moveUp(int index)
Deprecated. Moves attribute up in the underlying collection. |
protected void |
resetCache()
Deprecated. Called to indicate that the cache of attributes may have become invalid. |
Methods inherited from class org.argouml.uml.ui.UMLModelElementCachedListModel |
---|
addElement, buildCache, getModelElementAt, listRoleItemSet, propertySet, recalcModelElementSize, recovered, removed, roleAdded, roleRemoved, swap, targetChanged |
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel |
---|
addAtUtil, buildPopup, 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 UMLOwnedElementListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone)
container
- the container (typically a PropPanelPackage)
that provides access to the target classifier.property
- a string that specifies the name of an event that should force a refresh
of the list model. A null value will cause all events to trigger a refresh.showNone
- if true, an element labelled "none" will be shown where there are
no actual entries in the list.Method Detail |
protected void resetCache()
resetCache
in class UMLModelElementCachedListModel
public boolean isProperClass(java.lang.Object obj)
isProperClass
in class UMLModelElementCachedListModel
obj
- object to be considered.
public java.util.Collection getRawCollection()
getRawCollection
in class UMLModelElementCachedListModel
protected java.util.List getCache()
getCache
in class UMLModelElementCachedListModel
public void add(int index)
index
- position of new attribute (zero-based)public void delete(int index)
delete
in class UMLModelElementListModel
index
- position of attribute to be deleted.public void moveUp(int index)
index
- element to move uppublic void moveDown(int index)
index
- element to move down.public void addElement(MModelElement element, int index)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040229) | ArgoUML Project Home | ArgoUML Cookbook |