org.argouml.uml.ui.behavior.collaborations
Class UMLClassifierRoleAvailableFeaturesListModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--javax.swing.DefaultListModel
              |
              +--org.argouml.uml.ui.UMLModelElementListModel2
                    |
                    +--org.argouml.uml.ui.behavior.collaborations.UMLClassifierRoleAvailableFeaturesListModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.ListModel, ru.novosoft.uml.MElementListener, java.io.Serializable, TargetChangedListener

public class UMLClassifierRoleAvailableFeaturesListModel
extends UMLModelElementListModel2

Since:
Oct 4, 2002
See Also:
Serialized Form

Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel2
_target
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
UMLClassifierRoleAvailableFeaturesListModel()
          Constructor for UMLClassifierRoleAvailableFeaturesListModel.
 
Method Summary
protected  void buildModelList()
          Builds the list of elements.
protected  boolean isValidElement(ru.novosoft.uml.MBase element)
          Returns true if the given element is valid, i.e. it may be added to the list of elements.
 void roleAdded(ru.novosoft.uml.MElementEvent e)
           
 void roleRemoved(ru.novosoft.uml.MElementEvent e)
           
 void setTarget(java.lang.Object target)
          Sets the target.
 
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel2
addAll, addElement, contains, getChangedElement, getTarget, isValidEvent, listRoleItemSet, propertySet, recovered, removed, setAllElements, setEventName, targetChanged, targetReasserted
 
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, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UMLClassifierRoleAvailableFeaturesListModel

public UMLClassifierRoleAvailableFeaturesListModel()
Constructor for UMLClassifierRoleAvailableFeaturesListModel.
Parameters:
container -  
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.
Overrides:
buildModelList in class UMLModelElementListModel2
See Also:
UMLModelElementListModel2.buildModelList()

roleAdded

public void roleAdded(ru.novosoft.uml.MElementEvent e)
Overrides:
roleAdded in class UMLModelElementListModel2
See Also:
MElementListener.roleAdded(ru.novosoft.uml.MElementEvent)

setTarget

public void setTarget(java.lang.Object target)
Description copied from class: UMLModelElementListModel2
Sets the target. If the old target is instanceof MBase, it also removes the model from the element listener list of the target. If the new target is instanceof MBase, the model is added as element listener to the new target.
Overrides:
setTarget in class UMLModelElementListModel2
See Also:
UMLModelElementListModel2.setTarget(java.lang.Object)

isValidElement

protected boolean isValidElement(ru.novosoft.uml.MBase 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.
Overrides:
isValidElement in class UMLModelElementListModel2
See Also:
UMLModelElementListModel2.isValidElement(MBase)

roleRemoved

public void roleRemoved(ru.novosoft.uml.MElementEvent e)
Overrides:
roleRemoved in class UMLModelElementListModel2
See Also:
MElementListener.roleRemoved(ru.novosoft.uml.MElementEvent)


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook