org.argouml.uml.ui
Class UMLAssociationsListModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byorg.argouml.uml.ui.UMLModelElementListModel
          extended byorg.argouml.uml.ui.UMLModelElementCachedListModel
              extended byorg.argouml.uml.ui.UMLOwnedElementListModel
                  extended byorg.argouml.uml.ui.UMLAssociationsListModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.ListModel, ru.novosoft.uml.MElementListener, NotationContext, java.io.Serializable, UMLUserInterfaceComponent

Deprecated. as of ArgoUml 0.13.5 (10-may-2003), replaced by nothing, this class is part of the 'old'(pre 0.13.*) implementation of proppanels that used reflection a lot.

public class UMLAssociationsListModel
extends UMLOwnedElementListModel

This class implements a list model for the subpackages of a package. Used with a UMLList to display a list of attributes. Since packages may be mixed with other model elements, this class implements a cache of packages that are kept synchronized with the owned elements.

See Also:
UMLModelElementListModel, UMLList, Serialized Form

Field Summary
 
Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel
_upper, NO_LIMIT
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
UMLAssociationsListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone)
          Deprecated. Creates a new packages list model
 
Method Summary
 ru.novosoft.uml.foundation.core.MModelElement createModelElement()
          Deprecated.  
 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.
 
Methods inherited from class org.argouml.uml.ui.UMLOwnedElementListModel
add, addElement, delete, getCache, getRawCollection, moveDown, moveUp, resetCache
 
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, addAtUtil, buildPopup, elementAtUtil, formatElement, getContainer, getContextNotation, getElementAt, getModelElementSize, getProperty, getSize, getTarget, getUpperBound, moveDownUtil, moveUpUtil, navigateTo, 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

UMLAssociationsListModel

public UMLAssociationsListModel(UMLUserInterfaceContainer container,
                                java.lang.String property,
                                boolean showNone)
Deprecated. 
Creates a new packages list model

Parameters:
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

isProperClass

public 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.

Overrides:
isProperClass in class UMLOwnedElementListModel
Parameters:
obj - object to be considered.
Returns:
true if object is appropriate for this list.

createModelElement

public ru.novosoft.uml.foundation.core.MModelElement createModelElement()
Deprecated. 


ArgoUML © 1996-2003 (20040125)ArgoUML Project HomeArgoUML Cookbook