Class GenericListModel<B>
- java.lang.Object
-
- javax.swing.DefaultListSelectionModel
-
- org.nuiton.jaxx.runtime.swing.model.AbstractGenericListSelectionModel<B>
-
- org.nuiton.jaxx.runtime.swing.model.GenericListSelectionModel<B>
-
- org.nuiton.jaxx.runtime.swing.model.GenericListModel<B>
-
- All Implemented Interfaces:
Serializable,Cloneable,ComboBoxModel,ListModel,ListSelectionModel
public class GenericListModel<B> extends GenericListSelectionModel<B> implements ComboBoxModel
- Author:
- Sylvain Lletellier
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.nuiton.jaxx.runtime.swing.model.AbstractGenericListSelectionModel
listenerList, pcs, PROPERTY_SELECTED_VALUE, selectedValues
-
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled
-
Fields inherited from class org.nuiton.jaxx.runtime.swing.model.GenericListSelectionModel
listModel
-
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
-
-
Constructor Summary
Constructors Constructor Description GenericListModel()GenericListModel(Collection<B> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(int index, B valueToAdd)voidaddElement(B valueToAdd)voidaddElements(Collection<B> valuesToAdd)voidaddListDataListener(ListDataListener l)voidclearElements()protected voidfireContentsChanged(Object source, int index0, int index1)ObjectgetElementAt(int index)Collection<B>getElements()BgetSelectedItem()intgetSize()voidremoveElements(Collection<B> values)voidremoveListDataListener(ListDataListener l)voidsetElements(Collection<B> values)voidsetSelectedItem(Object anItem)-
Methods inherited from class org.nuiton.jaxx.runtime.swing.model.AbstractGenericListSelectionModel
addGenericListListener, addPropertyChangeListener, addPropertyChangeListener, addSelectedItem, addSelectionInterval, addSelectionIntervalWithFire, clearSelection, firePropertyChange, fireSelectionAdded, fireSelectionRemoved, fireValuesAdded, fireValuesRemoved, getSelectedValue, getSelectedValues, getSelectionMode, hasSelectedIndex, removeGenericListListener, removePropertyChangeListener, removePropertyChangeListener, removeSelectionInterval, removeSelectionIntervalWithoutFire, setSelectedValues, setSelectionInterval, unSelectItem, unSelectItems
-
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toString
-
Methods inherited from class org.nuiton.jaxx.runtime.swing.model.GenericListSelectionModel
getListModel, getValueAt
-
-
-
-
Constructor Detail
-
GenericListModel
public GenericListModel()
-
GenericListModel
public GenericListModel(Collection<B> values)
-
-
Method Detail
-
setElements
public void setElements(Collection<B> values)
-
clearElements
public void clearElements()
-
getElements
public Collection<B> getElements()
-
addElement
public void addElement(int index, B valueToAdd)
-
addElement
public void addElement(B valueToAdd)
-
addElements
public void addElements(Collection<B> valuesToAdd)
-
removeElements
public void removeElements(Collection<B> values)
-
setSelectedItem
public void setSelectedItem(Object anItem)
- Specified by:
setSelectedItemin interfaceComboBoxModel<B>
-
getSelectedItem
public B getSelectedItem()
- Specified by:
getSelectedItemin interfaceComboBoxModel<B>
-
getSize
public int getSize()
-
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAtin interfaceListModel<B>
-
addListDataListener
public void addListDataListener(ListDataListener l)
- Specified by:
addListDataListenerin interfaceListModel<B>
-
removeListDataListener
public void removeListDataListener(ListDataListener l)
- Specified by:
removeListDataListenerin interfaceListModel<B>
-
fireContentsChanged
protected void fireContentsChanged(Object source, int index0, int index1)
-
-