java.io.Serializable
, java.lang.Cloneable
, java.util.EventListener
, javax.swing.event.ListDataListener
, javax.swing.ListSelectionModel
public class CheckBoxListSelectionModel
extends javax.swing.DefaultListSelectionModel
implements javax.swing.event.ListDataListener
Constructor | Description |
---|---|
CheckBoxListSelectionModel() |
|
CheckBoxListSelectionModel(javax.swing.ListModel model) |
Modifier and Type | Method | Description |
---|---|---|
void |
addSelectionInterval(int index0,
int index1) |
|
void |
contentsChanged(javax.swing.event.ListDataEvent e) |
|
int |
getAllEntryIndex() |
Gets the index of the "all" entry in the CheckBoxList.
|
int |
getMinSelectionIndex() |
|
javax.swing.ListModel |
getModel() |
|
void |
insertIndexInterval(int index,
int length,
boolean before) |
Overrides so that inserting a row will not be selected automatically if the row after it is selected.
|
void |
intervalAdded(javax.swing.event.ListDataEvent e) |
|
void |
intervalRemoved(javax.swing.event.ListDataEvent e) |
|
boolean |
isAllEntryConsidered() |
Gets the flag indicating if this CheckBoxListSelectionModel should consider the CheckBoxList.ALL item if there is
one.
|
boolean |
isSelectedIndex(int index) |
|
void |
removeSelectionInterval(int index0,
int index1) |
|
void |
setAllEntryConsidered(boolean allEntryConsidered) |
Sets the flag indicating if this CheckBoxListSelectionModel should consider the CheckBoxList.ALL item if there is
one.
|
void |
setAllEntryIndex(int allEntryIndex) |
Sets the index of the "all" entry in the CheckBoxList.
|
void |
setModel(javax.swing.ListModel model) |
|
void |
setSelectionInterval(int index0,
int index1) |
|
protected void |
updateAllEntryIf() |
addListSelectionListener, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getSelectionMode, getValueIsAdjusting, isLeadAnchorNotificationEnabled, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toString
public CheckBoxListSelectionModel()
public CheckBoxListSelectionModel(javax.swing.ListModel model)
public int getAllEntryIndex()
setAllEntryIndex(int)
public void setAllEntryIndex(int allEntryIndex)
allEntryIndex
- the index of the "all" entry.public javax.swing.ListModel getModel()
public void setModel(javax.swing.ListModel model)
public void intervalAdded(javax.swing.event.ListDataEvent e)
intervalAdded
in interface javax.swing.event.ListDataListener
public void intervalRemoved(javax.swing.event.ListDataEvent e)
intervalRemoved
in interface javax.swing.event.ListDataListener
public void contentsChanged(javax.swing.event.ListDataEvent e)
contentsChanged
in interface javax.swing.event.ListDataListener
protected void updateAllEntryIf()
public void insertIndexInterval(int index, int length, boolean before)
insertIndexInterval
in interface javax.swing.ListSelectionModel
insertIndexInterval
in class javax.swing.DefaultListSelectionModel
index
- the index where the rows will be inserted.length
- the number of the rows that will be inserted.before
- it's before or after the index.public boolean isAllEntryConsidered()
setAllEntryConsidered(boolean)
public void setAllEntryConsidered(boolean allEntryConsidered)
allEntryConsidered
- the flagpublic boolean isSelectedIndex(int index)
isSelectedIndex
in interface javax.swing.ListSelectionModel
isSelectedIndex
in class javax.swing.DefaultListSelectionModel
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface javax.swing.ListSelectionModel
setSelectionInterval
in class javax.swing.DefaultListSelectionModel
public int getMinSelectionIndex()
getMinSelectionIndex
in interface javax.swing.ListSelectionModel
getMinSelectionIndex
in class javax.swing.DefaultListSelectionModel
public void addSelectionInterval(int index0, int index1)
addSelectionInterval
in interface javax.swing.ListSelectionModel
addSelectionInterval
in class javax.swing.DefaultListSelectionModel
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in interface javax.swing.ListSelectionModel
removeSelectionInterval
in class javax.swing.DefaultListSelectionModel