org.argouml.uml.ui.foundation.extension_mechanisms
Class UMLTagDefinitionNamespaceComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byorg.argouml.uml.ui.UMLComboBoxModel2
          extended byorg.argouml.uml.ui.foundation.core.UMLModelElementNamespaceComboBoxModel
              extended byorg.argouml.uml.ui.foundation.extension_mechanisms.UMLTagDefinitionNamespaceComboBoxModel
All Implemented Interfaces:
ComboBoxModel, EventListener, ListModel, PropertyChangeListener, Serializable, TargetListener

class UMLTagDefinitionNamespaceComboBoxModel
extends UMLModelElementNamespaceComboBoxModel


Field Summary
 
Fields inherited from class org.argouml.uml.ui.foundation.core.UMLModelElementNamespaceComboBoxModel
 
Fields inherited from class org.argouml.uml.ui.UMLComboBoxModel2
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
(package private) UMLTagDefinitionNamespaceComboBoxModel()
           
 
Method Summary
protected  void buildModelList()
          Builds the list of elements and sets the selectedIndex to the currently selected item if there is one.
protected  boolean isValidElement(Object o)
          Returns true if the given element is valid.
 void propertyChange(PropertyChangeEvent evt)
          If the property that this comboboxmodel depicts is changed in the UML model, this method will make sure that it is changed in the comboboxmodel too.
 
Methods inherited from class org.argouml.uml.ui.foundation.core.UMLModelElementNamespaceComboBoxModel
getSelectedModelElement
 
Methods inherited from class org.argouml.uml.ui.UMLComboBoxModel2
addAll, addElement, contains, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getChangedElement, getElementAt, getIndexOf, getPropertySetName, getSelectedItem, getSize, getTarget, isClearable, isFireListEvents, isValidEvent, removeAll, removeAllElements, removeElement, setElements, setFireListEvents, setSelectedItem, setTarget, targetAdded, targetRemoved, targetSet
 
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, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

UMLTagDefinitionNamespaceComboBoxModel

UMLTagDefinitionNamespaceComboBoxModel()
Method Detail

isValidElement

protected boolean isValidElement(Object o)
Description copied from class: UMLComboBoxModel2
Returns true if the given element is valid.

It is valid if it may be added to the list of elements.

Overrides:
isValidElement in class UMLModelElementNamespaceComboBoxModel
See Also:
UMLComboBoxModel2.isValidElement(Object)

buildModelList

protected void buildModelList()
Description copied from class: UMLComboBoxModel2
Builds the list of elements and sets the selectedIndex to the currently selected item if there is one. Called from targetChanged every time the target of the proppanel is changed.

Overrides:
buildModelList in class UMLModelElementNamespaceComboBoxModel
See Also:
UMLModelElementNamespaceComboBoxModel.buildModelList()

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Description copied from class: UMLComboBoxModel2
If the property that this comboboxmodel depicts is changed in the UML model, this method will make sure that it is changed in the comboboxmodel too. TODO: This function is not yet completely written!

Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class UMLModelElementNamespaceComboBoxModel
See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)


ArgoUML © 1996-2005ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook