public class CheckBoxListSelectionModel
extends javax.swing.DefaultListSelectionModel
implements javax.swing.event.ListDataListener
| Constructor and Description |
|---|
CheckBoxListSelectionModel() |
CheckBoxListSelectionModel(javax.swing.ListModel model) |
| Modifier and Type | Method and 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, toStringpublic 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.ListDataListenerpublic void intervalRemoved(javax.swing.event.ListDataEvent e)
intervalRemoved in interface javax.swing.event.ListDataListenerpublic void contentsChanged(javax.swing.event.ListDataEvent e)
contentsChanged in interface javax.swing.event.ListDataListenerprotected void updateAllEntryIf()
public void insertIndexInterval(int index,
int length,
boolean before)
insertIndexInterval in interface javax.swing.ListSelectionModelinsertIndexInterval in class javax.swing.DefaultListSelectionModelindex - 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.ListSelectionModelisSelectedIndex in class javax.swing.DefaultListSelectionModelpublic void setSelectionInterval(int index0,
int index1)
setSelectionInterval in interface javax.swing.ListSelectionModelsetSelectionInterval in class javax.swing.DefaultListSelectionModelpublic int getMinSelectionIndex()
getMinSelectionIndex in interface javax.swing.ListSelectionModelgetMinSelectionIndex in class javax.swing.DefaultListSelectionModelpublic void addSelectionInterval(int index0,
int index1)
addSelectionInterval in interface javax.swing.ListSelectionModeladdSelectionInterval in class javax.swing.DefaultListSelectionModelpublic void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in interface javax.swing.ListSelectionModelremoveSelectionInterval in class javax.swing.DefaultListSelectionModel