|
||||||||||
| 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.core.UMLModelElementNamespaceComboBoxModel
public class UMLModelElementNamespaceComboBoxModel
A model for a namespace combo box.
| Field Summary |
|---|
| Fields inherited from class org.argouml.uml.ui.UMLComboBoxModel2 |
|---|
buildingModel, CLEARED |
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
UMLModelElementNamespaceComboBoxModel()
Constructor for UMLModelElementNamespaceComboBoxModel. |
|
| Method Summary | |
|---|---|
protected void |
buildMinimalModelList()
Build the minimal number of items in the model for the edit box to be populated. |
protected void |
buildModelList()
Builds the list of elements and sets the selectedIndex to the currently selected item if there is one. |
protected java.lang.Object |
getSelectedModelElement()
Gets the modelelement that is selected in the UML model. |
protected boolean |
isLazy()
|
protected boolean |
isValidElement(java.lang.Object o)
Returns true if the given element is valid. |
void |
modelChanged(UmlChangeEvent evt)
If the property that this comboboxmodel depicts is changed in the UML model, this method will make sure that the changes will be done in the combobox-model equally. |
| 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 UMLModelElementNamespaceComboBoxModel()
| Method Detail |
|---|
protected boolean isValidElement(java.lang.Object o)
UMLComboBoxModel2It is valid if it may be added to the list of elements.
isValidElement in class UMLComboBoxModel2o - the given element
protected void buildMinimalModelList()
UMLComboBoxModel2If this lazy list building is used, do call setModelInvalid() here!
buildMinimalModelList in class UMLComboBoxModel2protected void buildModelList()
UMLComboBoxModel2
buildModelList in class UMLComboBoxModel2protected java.lang.Object getSelectedModelElement()
UMLComboBoxModel2
getSelectedModelElement in class UMLComboBoxModel2public void modelChanged(UmlChangeEvent evt)
UMLComboBoxModel2TODO: This function is not yet completely written!
modelChanged in class UMLComboBoxModel2PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)protected boolean isLazy()
isLazy in class UMLComboBoxModel2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |