ca.odell.glazedlists.swing
Class EventComboBoxModel<E>
- ComboBoxModel, EventListener, ListEventListener<E>, ListModel
public class EventComboBoxModel<E>
implements ComboBoxModel
A combo box model for displaying Glazed Lists in a combo box.
The implementation of setSelection and getSelection is not in any way tied
to the contents of the list.
EventComboBoxModel(EventList source) - Creates a new combo box model that displays the specified source list
in the combo box.
|
EventComboBoxModel
public EventComboBoxModel(EventList source)
Creates a new combo box model that displays the specified source list
in the combo box.
getSelectedItem
public Object getSelectedItem()
Gets the currently selected item.
setSelectedItem
public void setSelectedItem(Object selected)
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
.
Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2007-12-21 23:49