org.argouml.uml.ui.foundation.extension_mechanisms
Class UMLTagDefinitionNamespaceComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
org.argouml.uml.ui.UMLComboBoxModel2
org.argouml.uml.ui.foundation.core.UMLModelElementNamespaceComboBoxModel
org.argouml.uml.ui.foundation.extension_mechanisms.UMLTagDefinitionNamespaceComboBoxModel
- All Implemented Interfaces:
- ComboBoxModel, EventListener, ListModel, PropertyChangeListener, Serializable, TargetListener
- class UMLTagDefinitionNamespaceComboBoxModel
- extends UMLModelElementNamespaceComboBoxModel
|
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.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMLTagDefinitionNamespaceComboBoxModel
UMLTagDefinitionNamespaceComboBoxModel()
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)