|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractListModel
org.argouml.uml.ui.UMLComboBoxModel2
org.argouml.uml.ui.foundation.extension_mechanisms.UMLTagDefinitionTypeComboBoxModel
The combobox model for the type belonging to some attribute.
| Field Summary |
| Fields inherited from class org.argouml.uml.ui.UMLComboBoxModel2 |
|
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
UMLTagDefinitionTypeComboBoxModel()
Constructor for UMLTagDefinitionTypeComboBoxModel. |
|
| Method Summary | |
private static void |
addAllUniqueModelElementsFrom(Set elements,
Set paths,
Collection source)
Helper method for buildModelList. |
protected void |
buildModelList()
Builds the list of elements and sets the selectedIndex to the currently selected item if there is one. |
protected Object |
getSelectedModelElement()
Gets the modelelement that is selected in the UML model. |
protected boolean |
isValidElement(Object element)
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 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 |
public UMLTagDefinitionTypeComboBoxModel()
| Method Detail |
protected boolean isValidElement(Object element)
UMLComboBoxModel2It is valid if it may be added to the list of elements.
isValidElement in class UMLComboBoxModel2element - the given element
UMLComboBoxModel2.isValidElement(Object)
private static void addAllUniqueModelElementsFrom(Set elements,
Set paths,
Collection source)
Adds those elements from source that do not have the same path as any path in paths to elements, and its path to paths. Thus elements will never contain two objects with the same path, unless they are added by other means.
protected void buildModelList()
UMLComboBoxModel2
buildModelList in class UMLComboBoxModel2UMLComboBoxModel2.buildModelList()protected Object getSelectedModelElement()
UMLComboBoxModel2
getSelectedModelElement in class UMLComboBoxModel2UMLComboBoxModel2.getSelectedModelElement()public void propertyChange(PropertyChangeEvent evt)
UMLComboBoxModel2
propertyChange in interface PropertyChangeListenerpropertyChange in class UMLComboBoxModel2UMLComboBoxModel2.propertyChange(java.beans.PropertyChangeEvent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2005 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |