DefaultEventComboBoxModel instead. This class will be removed in the GL
2.0 release. The wrapping of the source list with an EDT safe list has been
determined to be undesirable (it is better for the user to provide their own EDT
safe list).@Deprecated public class EventComboBoxModel<E> extends EventListModel<E> implements javax.swing.ComboBoxModel<E>
The implementation of setSelectedItem(java.lang.Object) and getSelectedItem()
is not in any way tied to the contents of the list.
listDataEvent, source| Constructor and Description |
|---|
EventComboBoxModel(EventList<E> source)
Deprecated.
Creates a new combo box model that contains the elements of the given
source and tracks further changes made to it. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getSelectedItem()
Deprecated.
Gets the currently selected item.
|
void |
setSelectedItem(java.lang.Object selected)
Deprecated.
Sets the currently selected item.
|
disposeaddListDataListener, fireListDataEvent, getElementAt, getSize, listChanged, removeListDataListenerpublic java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModel<E>public void setSelectedItem(java.lang.Object selected)
The selection notification process is very much a hack. This fires
a ListDataEvent where the range is between -1 and -1. This is identical
to the notification process used by the DefaultComboBoxModel.
setSelectedItem in interface javax.swing.ComboBoxModel<E>Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Wed Feb 13 09:45:20 CET 2019