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 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

      protected java.util.List<B> selectedValues
  • Constructor Details

    • AbstractGenericListSelectionModel

      public AbstractGenericListSelectionModel()
  • Method Details

    • getSelectedValue

      public B getSelectedValue()
    • getSelectedValues

      public java.util.List<B> getSelectedValues()
    • setSelectedValues

      public void setSelectedValues​(java.util.List<B> selectedValues)
    • unSelectItems

      protected void unSelectItems​(java.util.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:
      addSelectionInterval in interface javax.swing.ListSelectionModel
      Overrides:
      addSelectionInterval in class javax.swing.DefaultListSelectionModel
    • setSelectionInterval

      public void setSelectionInterval​(int index0, int index1)
      Specified by:
      setSelectionInterval in interface javax.swing.ListSelectionModel
      Overrides:
      setSelectionInterval in class javax.swing.DefaultListSelectionModel
    • removeSelectionInterval

      public void removeSelectionInterval​(int index0, int index1)
      Specified by:
      removeSelectionInterval in interface javax.swing.ListSelectionModel
      Overrides:
      removeSelectionInterval in class javax.swing.DefaultListSelectionModel
    • 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:
      clearSelection in interface javax.swing.ListSelectionModel
      Overrides:
      clearSelection in class javax.swing.DefaultListSelectionModel
    • getSelectionMode

      public int getSelectionMode()
      Specified by:
      getSelectionMode in interface javax.swing.ListSelectionModel
      Overrides:
      getSelectionMode in class javax.swing.DefaultListSelectionModel
    • fireValuesAdded

      protected void fireValuesAdded​(java.util.Collection<B> values)
    • fireValuesRemoved

      protected void fireValuesRemoved​(java.util.Collection<B> values)
    • fireSelectionAdded

      protected void fireSelectionAdded​(java.util.Collection<B> selectedValues)
    • fireSelectionRemoved

      protected void fireSelectionRemoved​(java.util.Collection<B> selectedValues)
    • addGenericListListener

      public void addGenericListListener​(GenericListListener l)
    • removeGenericListListener

      public void removeGenericListListener​(GenericListListener l)
    • 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)