|
||||||||||
| 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.UMLStructuralFeatureTypeComboBoxModel
public class UMLStructuralFeatureTypeComboBoxModel
The combobox model for the type belonging to some attribute.
| Field Summary |
|---|
| Fields inherited from class org.argouml.uml.ui.UMLComboBoxModel2 |
|---|
buildingModel, CLEARED |
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
UMLStructuralFeatureTypeComboBoxModel()
Constructor for UMLStructuralFeatureTypeComboBoxModel. |
|
| Method Summary | |
|---|---|
protected void |
addOtherModelEventListeners(java.lang.Object newTarget)
This function allows subclasses to listen to more modelelements. |
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 element)
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. |
protected void |
removeOtherModelEventListeners(java.lang.Object oldTarget)
This function allows subclasses to listen to more modelelements. |
| 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 UMLStructuralFeatureTypeComboBoxModel()
| Method Detail |
|---|
protected boolean isValidElement(java.lang.Object element)
UMLComboBoxModel2It is valid if it may be added to the list of elements.
isValidElement in class UMLComboBoxModel2element - the given element
protected void buildModelList()
UMLComboBoxModel2
buildModelList in class UMLComboBoxModel2protected void buildMinimalModelList()
UMLComboBoxModel2If this lazy list building is used, do call setModelInvalid() here!
buildMinimalModelList in class UMLComboBoxModel2protected boolean isLazy()
isLazy in class UMLComboBoxModel2protected java.lang.Object getSelectedModelElement()
UMLComboBoxModel2
getSelectedModelElement in class UMLComboBoxModel2protected void addOtherModelEventListeners(java.lang.Object newTarget)
UMLComboBoxModel2
addOtherModelEventListeners in class UMLComboBoxModel2newTarget - the UML modelelementprotected void removeOtherModelEventListeners(java.lang.Object oldTarget)
UMLComboBoxModel2
removeOtherModelEventListeners in class UMLComboBoxModel2oldTarget - the UML modelelementpublic void modelChanged(UmlChangeEvent evt)
UMLComboBoxModel2TODO: This function is not yet completely written!
modelChanged in class UMLComboBoxModel2PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
|
||||||||||
| 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 |