|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractListModel
com.taursys.swing.MComboBoxModel
MComboBoxModel is a ComboBoxModel for use with an MComboBox.
| Field Summary |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
MComboBoxModel()
Constructs a new model with an empty option list. |
|
MComboBoxModel(java.lang.Object[] items)
Constructs a new model with the given items as the option list. |
|
| Method Summary | |
void |
addEnableListener(EnableListener l)
Adds the given listener to the list that is notified each time the enabled state changes. |
protected void |
fireEnableChange(EnableEvent e)
Notify the listeners that the enabled state has changed. |
java.lang.Object |
getElementAt(int index)
Get the item from the list at the given index. |
java.lang.String |
getListPropertyName()
Get the property name in the ListValueHolder which will provide the selection value. |
java.lang.String[] |
getListPropertyNames()
Get the property names in the ListValueHolder which will provide the selection values. |
ListValueHolder |
getListValueHolder()
Get the valueHolder with the list of options for this component. |
java.lang.String |
getNullDisplay()
Returns text to display in list for a null value. |
java.lang.String |
getPropertyName()
Get the property name in the ValueHolder which will store the selection. |
java.lang.String[] |
getPropertyNames()
Get the property names in the ValueHolder which will store the selection. |
java.lang.Object |
getSelectedItem()
Get the selected item in the list. |
int |
getSize()
Get the current size of the list. |
ValueHolder |
getValueHolder()
Get the ValueHolder which will store the selection |
boolean |
isNullAllowed()
Returns indicator that a null value is a valid selection. |
void |
removeEnableListener(EnableListener l)
Removes the given listener from the list that is notified each time the enabled state changes. |
void |
setListPropertyName(java.lang.String listPropertyName)
Set the property name in the ListValueHolder which will provide the selection value. |
void |
setListPropertyNames(java.lang.String[] listPropertyNames)
Set the property names in the ListValueHolder which will provide the selection values. |
void |
setListValueHolder(ListValueHolder newListValueHolder)
Set the valueHolder with the list of options for this component. |
void |
setNullAllowed(boolean nullAllowed)
Sets indicator that a null value is a valid selection. |
void |
setNullDisplay(java.lang.String text)
Sets text to display in list for a null value. |
void |
setPropertyName(java.lang.String propertyName)
Set the property name in the ValueHolder which will store the selection. |
void |
setPropertyNames(java.lang.String[] propertyNames)
Set the property names in the ValueHolder which will store the selection. |
void |
setSelectedItem(java.lang.Object anItem)
Set the selected item in the list. |
void |
setValueHolder(ValueHolder valueHolder)
Set the ValueHolder which will store the selection |
| Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, 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 MComboBoxModel()
public MComboBoxModel(java.lang.Object[] items)
| Method Detail |
public void setSelectedItem(java.lang.Object anItem)
setSelectedItem in interface javax.swing.ComboBoxModelanItem - the selected item in the list.public java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModelpublic int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelindex - indicates which item to return.
public void setValueHolder(ValueHolder valueHolder)
valueHolder - the ValueHolder which will store the selectionpublic ValueHolder getValueHolder()
public void setPropertyName(java.lang.String propertyName)
propertyName - the property name in the ValueHolder which will store the selection.public java.lang.String getPropertyName()
public void setPropertyNames(java.lang.String[] propertyNames)
propertyNames - the property names in the ValueHolder which will store the selection.public java.lang.String[] getPropertyNames()
public void setListValueHolder(ListValueHolder newListValueHolder)
newListValueHolder - the valueHolder with the list of options for
this component.public ListValueHolder getListValueHolder()
public void setListPropertyName(java.lang.String listPropertyName)
listPropertyName - the property name in the ListValueHolder which will
provide the selection value.public java.lang.String getListPropertyName()
public void setListPropertyNames(java.lang.String[] listPropertyNames)
listPropertyNames - the property names in the ListValueHolder which
will provide the selection values.public java.lang.String[] getListPropertyNames()
public void setNullAllowed(boolean nullAllowed)
public boolean isNullAllowed()
public void setNullDisplay(java.lang.String text)
public java.lang.String getNullDisplay()
public void removeEnableListener(EnableListener l)
l - the EnableListener to remove from the notify list.public void addEnableListener(EnableListener l)
l - the EnableListener to add to the notify list.protected void fireEnableChange(EnableEvent e)
e - the EnableEvent to send to the listeners on the notify list.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||