public class GenericListModel<B> extends GenericListSelectionModel<B> implements ComboBoxModel
listModellistenerList, pcs, PROPERTY_SELECTED_VALUE, selectedValuesleadAnchorNotificationEnabledMULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION| Constructor and Description |
|---|
GenericListModel() |
GenericListModel(Collection<B> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(B valueToAdd) |
void |
addElement(int index,
B valueToAdd) |
void |
addElements(Collection<B> valuesToAdd) |
void |
addListDataListener(ListDataListener l) |
void |
clearElements() |
protected void |
fireContentsChanged(Object source,
int index0,
int index1) |
Object |
getElementAt(int index) |
Collection<B> |
getElements() |
B |
getSelectedItem() |
int |
getSize() |
void |
removeElements(Collection<B> values) |
void |
removeListDataListener(ListDataListener l) |
void |
setElements(Collection<B> values) |
void |
setSelectedItem(Object anItem) |
getListModel, getValueAtaddGenericListListener, addPropertyChangeListener, addPropertyChangeListener, addSelectedItem, addSelectionInterval, addSelectionIntervalWithFire, clearSelection, firePropertyChange, fireSelectionAdded, fireSelectionRemoved, fireValuesAdded, fireValuesRemoved, getSelectedValue, getSelectedValues, getSelectionMode, hasSelectedIndex, removeGenericListListener, removePropertyChangeListener, removePropertyChangeListener, removeSelectionInterval, removeSelectionIntervalWithoutFire, setSelectedValues, setSelectionInterval, unSelectItem, unSelectItemsaddListSelectionListener, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toStringpublic GenericListModel()
public GenericListModel(Collection<B> values)
public void setElements(Collection<B> values)
public void clearElements()
public Collection<B> getElements()
public void addElement(int index,
B valueToAdd)
public void addElement(B valueToAdd)
public void addElements(Collection<B> valuesToAdd)
public void removeElements(Collection<B> values)
public void setSelectedItem(Object anItem)
setSelectedItem in interface ComboBoxModelpublic B getSelectedItem()
getSelectedItem in interface ComboBoxModelpublic int getSize()
getSize in interface ListModelgetSize in class GenericListSelectionModel<B>public Object getElementAt(int index)
getElementAt in interface ListModelpublic void addListDataListener(ListDataListener l)
addListDataListener in interface ListModelpublic void removeListDataListener(ListDataListener l)
removeListDataListener in interface ListModelprotected void fireContentsChanged(Object source, int index0, int index1)
Copyright © 2008–2019 Ultreia.io. All rights reserved.