org.argouml.uml.ui.foundation.core
Class UMLClassOperationListModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byjavax.swing.DefaultListModel
          extended byorg.argouml.uml.ui.UMLModelElementListModel2
              extended byorg.argouml.uml.ui.UMLModelElementOrderedListModel2
                  extended byorg.argouml.uml.ui.foundation.core.UMLClassOperationListModel
All Implemented Interfaces:
EventListener, ListModel, ru.novosoft.uml.MElementListener, Serializable, TargetListener

public class UMLClassOperationListModel
extends UMLModelElementOrderedListModel2

Since:
Mar 22, 2003
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel2
 
Fields inherited from class javax.swing.DefaultListModel
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
UMLClassOperationListModel()
          Constructor for UMLClassifierFeatureListModel.
 
Method Summary
protected  void buildModelList()
          Builds the list of elements.
protected  boolean isValidElement(Object element)
          Returns true if the given element is valid, i.e.
 void swap(int index1, int index2)
          This function should swap two elements in the UML model.
 
Methods inherited from class org.argouml.uml.ui.UMLModelElementOrderedListModel2
buildPopup
 
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel2
addAll, addElement, contains, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getChangedElement, getTarget, isValidEvent, listRoleItemSet, propertySet, recovered, removed, roleAdded, roleRemoved, setAllElements, setBuildingModel, setEventName, setListTarget, setTarget, targetAdded, targetRemoved, targetSet
 
Methods inherited from class javax.swing.DefaultListModel
add, capacity, clear, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UMLClassOperationListModel

public UMLClassOperationListModel()
Constructor for UMLClassifierFeatureListModel.

Method Detail

buildModelList

protected void buildModelList()
Description copied from class: UMLModelElementListModel2
Builds the list of elements. Called from targetChanged every time the target of the proppanel is changed.

Specified by:
buildModelList in class UMLModelElementOrderedListModel2
See Also:
UMLModelElementListModel2.buildModelList()

isValidElement

protected boolean isValidElement(Object element)
Description copied from class: UMLModelElementListModel2
Returns true if the given element is valid, i.e. it may be added to the list of elements.

Specified by:
isValidElement in class UMLModelElementOrderedListModel2
See Also:
UMLModelElementListModel2.isValidElement(Object)

swap

public void swap(int index1,
                 int index2)
Description copied from class: UMLModelElementOrderedListModel2
This function should swap two elements in the UML model. The list will then be updated by the events/listener mechanism.

Specified by:
swap in class UMLModelElementOrderedListModel2
Parameters:
index1 - the 1st element
index2 - the 2nd element
See Also:
UMLModelElementOrderedListModel2.swap(int, int)


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook