org.argouml.uml.ui
Class UMLClassifiersListModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--org.argouml.uml.ui.UMLModelElementListModel
              |
              +--org.argouml.uml.ui.UMLModelElementCachedListModel
                    |
                    +--org.argouml.uml.ui.UMLOwnedElementListModel
                          |
                          +--org.argouml.uml.ui.UMLClassifiersListModel
All Implemented Interfaces:
javax.swing.ListModel, NotationContext, java.io.Serializable, UMLUserInterfaceComponent

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

public class UMLClassifiersListModel
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
UMLClassifiersListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone)
          Deprecated. Creates a new packages list model
 
Method Summary
 void addActor(int index)
          Deprecated.  
 void addClass(int index)
          Deprecated.  
 void addDatatype(int index)
          Deprecated.  
 void addException(int index)
          Deprecated.  
 void addInterface(int index)
          Deprecated.  
 void addSignal(int index)
          Deprecated.  
 void addUseCase(int index)
          Deprecated.  
 boolean buildPopup(javax.swing.JPopupMenu popup, int index)
          Deprecated. This method builds a context (pop-up) menu for the list.
 MModelElement createModelElement()
          Deprecated.  
 boolean isProperClass(java.lang.Object obj)
          Deprecated. Called to determine if a particular feature 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, 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

UMLClassifiersListModel

public UMLClassifiersListModel(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 feature 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.

buildPopup

public boolean buildPopup(javax.swing.JPopupMenu popup,
                          int index)
Deprecated. 
This method builds a context (pop-up) menu for the list. This method may be overriden for lists that have additional menu items or when the default list of actions is inappropriate.

Overrides:
buildPopup in class UMLModelElementListModel
Parameters:
popup - popup menu
index - index of selected list item
Returns:
"true" if popup menu should be displayed

addDatatype

public void addDatatype(int index)
Deprecated. 

addClass

public void addClass(int index)
Deprecated. 

addInterface

public void addInterface(int index)
Deprecated. 

addException

public void addException(int index)
Deprecated. 

addSignal

public void addSignal(int index)
Deprecated. 

createModelElement

public MModelElement createModelElement()
Deprecated. 
Overrides:
createModelElement in class UMLOwnedElementListModel

addActor

public void addActor(int index)
Deprecated. 

addUseCase

public void addUseCase(int index)
Deprecated. 


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