org.argouml.uml.ui
Class UMLOperationsListModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byorg.argouml.uml.ui.UMLModelElementListModel
          extended byorg.argouml.uml.ui.UMLModelElementCachedListModel
              extended byorg.argouml.uml.ui.UMLOperationsListModel
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 UMLClassOperationListModel, this class is part of the 'old'(pre 0.13.*) implementation of proppanels that used reflection a lot.

public class UMLOperationsListModel
extends UMLModelElementCachedListModel

See Also:
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
UMLOperationsListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone)
          Deprecated.  
 
Method Summary
 void add(int index)
          Deprecated. Adds a new operation, updating both the cache and underlying collection and navigating to the new operation.
 boolean buildPopup(javax.swing.JPopupMenu popup, int index)
          Deprecated. This method builds a context (pop-up) menu for the list.
 void delete(int index)
          Deprecated. Standard delete method.
protected  java.util.List getCache()
          Deprecated.  
 java.util.Collection getRawCollection()
          Deprecated.  
 boolean isProperClass(java.lang.Object obj)
          Deprecated.  
 void moveDown(int index)
          Deprecated.  
 void moveUp(int index)
          Deprecated.  
protected  void resetCache()
          Deprecated.  
 
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, 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

UMLOperationsListModel

public UMLOperationsListModel(UMLUserInterfaceContainer container,
                              java.lang.String property,
                              boolean showNone)
Deprecated. 
Method Detail

resetCache

protected void resetCache()
Deprecated. 
Specified by:
resetCache in class UMLModelElementCachedListModel

isProperClass

public boolean isProperClass(java.lang.Object obj)
Deprecated. 
Specified by:
isProperClass in class UMLModelElementCachedListModel

getRawCollection

public java.util.Collection getRawCollection()
Deprecated. 

getCache

protected java.util.List getCache()
Deprecated. 
Specified by:
getCache in class UMLModelElementCachedListModel

add

public void add(int index)
Deprecated. 
Adds a new operation, updating both the cache and underlying collection and navigating to the new operation. Called by "Add" popup menu item. Calls addElement to do the actual updating of the collection and cache. Modified: July 19, 2001 - psager Modified: Dec 06, 2001 - thn

Parameters:
index - position of new operation (zero-based) but only refers to the index position in the particular list box, not the collection.

delete

public void delete(int index)
Deprecated. 
Description copied from class: UMLModelElementListModel
Standard delete method.

Overrides:
delete in class UMLModelElementListModel
Parameters:
index -

moveUp

public void moveUp(int index)
Deprecated. 

moveDown

public void moveDown(int index)
Deprecated. 

buildPopup

public boolean buildPopup(javax.swing.JPopupMenu popup,
                          int index)
Deprecated. 
This method builds a context (pop-up) menu for the list.

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


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