ca.odell.glazedlists.swing
Class EventComboBoxModel<E>
java.lang.Object
ca.odell.glazedlists.swing.DefaultEventListModel<E>
ca.odell.glazedlists.swing.EventListModel<E>
ca.odell.glazedlists.swing.EventComboBoxModel<E>
- All Implemented Interfaces:
- ListEventListener<E>, java.util.EventListener, javax.swing.ComboBoxModel, javax.swing.ListModel
Deprecated. Use 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).
public class EventComboBoxModel<E>
- extends EventListModel<E>
- implements javax.swing.ComboBoxModel
A combo box model for displaying Glazed Lists in a combo box.
The implementation of setSelectedItem(java.lang.Object)
and getSelectedItem()
is not in any way tied to the contents of the list.
- Author:
- Jesse Wilson
- See Also:
- Glazed Lists Tutorial
Constructor Summary |
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. |
Method Summary |
java.lang.Object |
getSelectedItem()
Deprecated. Gets the currently selected item. |
void |
setSelectedItem(java.lang.Object selected)
Deprecated. Sets the currently selected item. |
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, getElementAt, getSize, removeListDataListener |
EventComboBoxModel
public 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.
getSelectedItem
public java.lang.Object getSelectedItem()
- Deprecated.
- Gets the currently selected item.
- Specified by:
getSelectedItem
in interface javax.swing.ComboBoxModel
setSelectedItem
public void setSelectedItem(java.lang.Object selected)
- Deprecated.
- Sets the currently selected item.
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
.
- Specified by:
setSelectedItem
in interface javax.swing.ComboBoxModel
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2013-07-04 20:55