Class AbstractGenericListSelectionModel<B>
- java.lang.Object
-
- javax.swing.DefaultListSelectionModel
-
- org.nuiton.jaxx.runtime.swing.model.AbstractGenericListSelectionModel<B>
-
- All Implemented Interfaces:
Serializable,Cloneable,ListSelectionModel
- Direct Known Subclasses:
GenericListSelectionModel
public abstract class AbstractGenericListSelectionModel<B> extends DefaultListSelectionModel
- Author:
- Sylvain Lletellier
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected EventListenerListlistenerListprotected PropertyChangeSupportpcsstatic StringPROPERTY_SELECTED_VALUEprotected List<B>selectedValues-
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled
-
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
-
-
Constructor Summary
Constructors Constructor Description AbstractGenericListSelectionModel()
-
Method Summary
-
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
-
-
-
-
Field Detail
-
PROPERTY_SELECTED_VALUE
public static final String PROPERTY_SELECTED_VALUE
- See Also:
- Constant Field Values
-
listenerList
protected final EventListenerList listenerList
-
pcs
protected final PropertyChangeSupport pcs
-
-
Method Detail
-
getSelectedValue
public B getSelectedValue()
-
unSelectItems
protected void unSelectItems(Collection<B> values)
-
unSelectItem
protected void unSelectItem(B value)
-
addSelectedItem
public void addSelectedItem(B toSelect)
-
hasSelectedIndex
public boolean hasSelectedIndex()
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)- Specified by:
addSelectionIntervalin interfaceListSelectionModel- Overrides:
addSelectionIntervalin classDefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)- Specified by:
setSelectionIntervalin interfaceListSelectionModel- Overrides:
setSelectionIntervalin classDefaultListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)- Specified by:
removeSelectionIntervalin interfaceListSelectionModel- Overrides:
removeSelectionIntervalin classDefaultListSelectionModel
-
removeSelectionIntervalWithoutFire
protected void removeSelectionIntervalWithoutFire(int index0, int index1)
-
addSelectionIntervalWithFire
protected void addSelectionIntervalWithFire(int index0, int index1)
-
getSize
public abstract int getSize()
-
getValueAt
public abstract B getValueAt(int i)
-
clearSelection
public void clearSelection()
- Specified by:
clearSelectionin interfaceListSelectionModel- Overrides:
clearSelectionin classDefaultListSelectionModel
-
getSelectionMode
public int getSelectionMode()
- Specified by:
getSelectionModein interfaceListSelectionModel- Overrides:
getSelectionModein classDefaultListSelectionModel
-
fireValuesAdded
protected void fireValuesAdded(Collection<B> values)
-
fireValuesRemoved
protected void fireValuesRemoved(Collection<B> values)
-
fireSelectionAdded
protected void fireSelectionAdded(Collection<B> selectedValues)
-
fireSelectionRemoved
protected void fireSelectionRemoved(Collection<B> selectedValues)
-
addGenericListListener
public void addGenericListListener(GenericListListener l)
-
removeGenericListListener
public void removeGenericListListener(GenericListListener l)
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
-
addPropertyChangeListener
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
-
removePropertyChangeListener
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
-
-