JIDE 3.5.15

com.jidesoft.grid
Class CustomValueFilterListSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by com.jidesoft.swing.CheckBoxListSelectionModel
          extended by com.jidesoft.grid.CustomValueFilterListSelectionModel
All Implemented Interfaces:
Serializable, Cloneable, EventListener, ListDataListener, ListSelectionModel

public class CustomValueFilterListSelectionModel
extends CheckBoxListSelectionModel

A CheckBoxListSelectionModel which contains All, Custom and other special table filter items.

Since:
3.3.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Constructor Summary
CustomValueFilterListSelectionModel(int indexAfterCustomFilter, int indexFirstValueItem)
          The constructor.
 
Method Summary
 void addSelectionInterval(int index0, int index1)
           
 int getMaxSelectionIndex()
           
 int getMinSelectionIndex()
           
 boolean isSelectedIndex(int index)
           
 void removeSelectionInterval(int index0, int index1)
           
 void setSelectionInterval(int index0, int index1)
           
 
Methods inherited from class com.jidesoft.swing.CheckBoxListSelectionModel
contentsChanged, getAllEntryIndex, getModel, insertIndexInterval, intervalAdded, intervalRemoved, isAllEntryConsidered, setAllEntryConsidered, setAllEntryIndex, setModel
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getSelectionMode, getValueIsAdjusting, isLeadAnchorNotificationEnabled, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomValueFilterListSelectionModel

public CustomValueFilterListSelectionModel(int indexAfterCustomFilter,
                                           int indexFirstValueItem)
The constructor.

Parameters:
indexAfterCustomFilter - the index after custom filter
indexFirstValueItem - the index of the first regular value item
Method Detail

isSelectedIndex

public boolean isSelectedIndex(int index)
Specified by:
isSelectedIndex in interface ListSelectionModel
Overrides:
isSelectedIndex in class CheckBoxListSelectionModel

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)
Specified by:
setSelectionInterval in interface ListSelectionModel
Overrides:
setSelectionInterval in class CheckBoxListSelectionModel

getMinSelectionIndex

public int getMinSelectionIndex()
Specified by:
getMinSelectionIndex in interface ListSelectionModel
Overrides:
getMinSelectionIndex in class CheckBoxListSelectionModel

getMaxSelectionIndex

public int getMaxSelectionIndex()
Specified by:
getMaxSelectionIndex in interface ListSelectionModel
Overrides:
getMaxSelectionIndex in class DefaultListSelectionModel

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)
Specified by:
addSelectionInterval in interface ListSelectionModel
Overrides:
addSelectionInterval in class CheckBoxListSelectionModel

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)
Specified by:
removeSelectionInterval in interface ListSelectionModel
Overrides:
removeSelectionInterval in class CheckBoxListSelectionModel

JIDE 3.5.15