Package jaxx.runtime.swing.model
Class AbstractGenericListSelectionModel<B>
java.lang.Object
javax.swing.DefaultListSelectionModel
jaxx.runtime.swing.model.AbstractGenericListSelectionModel<B>
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.swing.ListSelectionModel
- Direct Known Subclasses:
GenericListSelectionModel
public abstract class AbstractGenericListSelectionModel<B>
extends javax.swing.DefaultListSelectionModel
- Author:
- Sylvain Lletellier
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.event.EventListenerListlistenerListprotected java.beans.PropertyChangeSupportpcsstatic java.lang.StringPROPERTY_SELECTED_VALUEprotected java.util.List<B>selectedValuesFields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabledFields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION -
Constructor Summary
Constructors Constructor Description AbstractGenericListSelectionModel() -
Method Summary
Modifier and Type Method Description voidaddGenericListListener(GenericListListener l)voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)voidaddSelectedItem(B toSelect)voidaddSelectionInterval(int index0, int index1)protected voidaddSelectionIntervalWithFire(int index0, int index1)voidclearSelection()protected voidfirePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)protected voidfireSelectionAdded(java.util.Collection<B> selectedValues)protected voidfireSelectionRemoved(java.util.Collection<B> selectedValues)protected voidfireValuesAdded(java.util.Collection<B> values)protected voidfireValuesRemoved(java.util.Collection<B> values)BgetSelectedValue()java.util.List<B>getSelectedValues()intgetSelectionMode()abstract intgetSize()abstract BgetValueAt(int i)booleanhasSelectedIndex()voidremoveGenericListListener(GenericListListener l)voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)voidremovePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)voidremoveSelectionInterval(int index0, int index1)protected voidremoveSelectionIntervalWithoutFire(int index0, int index1)voidsetSelectedValues(java.util.List<B> selectedValues)voidsetSelectionInterval(int index0, int index1)protected voidunSelectItem(B value)protected voidunSelectItems(java.util.Collection<B> values)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, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.swing.ListSelectionModel
getSelectedIndices, getSelectedItemsCount
-
Field Details
-
PROPERTY_SELECTED_VALUE
public static final java.lang.String PROPERTY_SELECTED_VALUE- See Also:
- Constant Field Values
-
listenerList
protected javax.swing.event.EventListenerList listenerList -
pcs
protected final java.beans.PropertyChangeSupport pcs -
selectedValues
-
-
Constructor Details
-
AbstractGenericListSelectionModel
public AbstractGenericListSelectionModel()
-
-
Method Details
-
getSelectedValue
-
getSelectedValues
-
setSelectedValues
-
unSelectItems
-
unSelectItem
-
addSelectedItem
-
hasSelectedIndex
public boolean hasSelectedIndex() -
addSelectionInterval
public void addSelectionInterval(int index0, int index1)- Specified by:
addSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
addSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)- Specified by:
setSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
setSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)- Specified by:
removeSelectionIntervalin interfacejavax.swing.ListSelectionModel- Overrides:
removeSelectionIntervalin classjavax.swing.DefaultListSelectionModel
-
removeSelectionIntervalWithoutFire
protected void removeSelectionIntervalWithoutFire(int index0, int index1) -
addSelectionIntervalWithFire
protected void addSelectionIntervalWithFire(int index0, int index1) -
getSize
public abstract int getSize() -
getValueAt
-
clearSelection
public void clearSelection()- Specified by:
clearSelectionin interfacejavax.swing.ListSelectionModel- Overrides:
clearSelectionin classjavax.swing.DefaultListSelectionModel
-
getSelectionMode
public int getSelectionMode()- Specified by:
getSelectionModein interfacejavax.swing.ListSelectionModel- Overrides:
getSelectionModein classjavax.swing.DefaultListSelectionModel
-
fireValuesAdded
-
fireValuesRemoved
-
fireSelectionAdded
-
fireSelectionRemoved
-
addGenericListListener
-
removeGenericListListener
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener) -
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener) -
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener) -
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener) -
firePropertyChange
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
-