public class CheckBoxListSelectionModelWithWrapper extends CheckBoxListSelectionModel implements ListDataListener, ListSelectionListener
leadAnchorNotificationEnabled, listenerList
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
Constructor and Description |
---|
CheckBoxListSelectionModelWithWrapper() |
CheckBoxListSelectionModelWithWrapper(ListModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionInterval(int index0,
int index1) |
void |
clearSelection() |
void |
contentsChanged(ListDataEvent e) |
protected CheckBoxListSelectionModel |
createOriginalSelectionModel()
Creates the original selection model.
|
protected CheckBoxListSelectionModel |
createOriginalSelectionModel(ListModel model)
Creates the original selection model.
|
int |
getAnchorSelectionIndex() |
int |
getLeadSelectionIndex() |
int |
getMaxSelectionIndex() |
int |
getMinSelectionIndex() |
CheckBoxListSelectionModel |
getOriginalSelectionModel()
Gets the original selection model.
|
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(ListDataEvent e) |
void |
intervalRemoved(ListDataEvent e) |
boolean |
isSelectedIndex(int index) |
void |
moveLeadSelectionIndex(int leadIndex) |
void |
removeIndexInterval(int index0,
int index1) |
void |
removeSelectionInterval(int index0,
int index1) |
void |
setAnchorSelectionIndex(int anchorIndex) |
void |
setLeadSelectionIndex(int leadIndex) |
void |
setModel(ListModel model) |
void |
setSelectionInterval(int index0,
int index1) |
void |
valueChanged(ListSelectionEvent e) |
getAllEntryIndex, getModel, isAllEntryConsidered, setAllEntryConsidered, setAllEntryIndex
addListSelectionListener, clone, fireValueChanged, fireValueChanged, fireValueChanged, getListeners, getListSelectionListeners, getSelectionMode, getValueIsAdjusting, isLeadAnchorNotificationEnabled, isSelectionEmpty, removeListSelectionListener, setLeadAnchorNotificationEnabled, setSelectionMode, setValueIsAdjusting, toString
public CheckBoxListSelectionModelWithWrapper()
public CheckBoxListSelectionModelWithWrapper(ListModel model)
protected CheckBoxListSelectionModel createOriginalSelectionModel()
protected CheckBoxListSelectionModel createOriginalSelectionModel(ListModel model)
model
- the list modelpublic CheckBoxListSelectionModel getOriginalSelectionModel()
public void setModel(ListModel model)
setModel
in class CheckBoxListSelectionModel
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
public void intervalAdded(ListDataEvent e)
intervalAdded
in interface ListDataListener
intervalAdded
in class CheckBoxListSelectionModel
public void intervalRemoved(ListDataEvent e)
intervalRemoved
in interface ListDataListener
intervalRemoved
in class CheckBoxListSelectionModel
public void contentsChanged(ListDataEvent e)
contentsChanged
in interface ListDataListener
contentsChanged
in class CheckBoxListSelectionModel
public void insertIndexInterval(int index, int length, boolean before)
CheckBoxListSelectionModel
insertIndexInterval
in interface ListSelectionModel
insertIndexInterval
in class CheckBoxListSelectionModel
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 isSelectedIndex(int index)
isSelectedIndex
in interface ListSelectionModel
isSelectedIndex
in class CheckBoxListSelectionModel
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface ListSelectionModel
setSelectionInterval
in class CheckBoxListSelectionModel
public void addSelectionInterval(int index0, int index1)
addSelectionInterval
in interface ListSelectionModel
addSelectionInterval
in class CheckBoxListSelectionModel
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in interface ListSelectionModel
removeSelectionInterval
in class CheckBoxListSelectionModel
public void clearSelection()
clearSelection
in interface ListSelectionModel
clearSelection
in class DefaultListSelectionModel
public void removeIndexInterval(int index0, int index1)
removeIndexInterval
in interface ListSelectionModel
removeIndexInterval
in class DefaultListSelectionModel
public void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex
in interface ListSelectionModel
setAnchorSelectionIndex
in class DefaultListSelectionModel
public void moveLeadSelectionIndex(int leadIndex)
moveLeadSelectionIndex
in class DefaultListSelectionModel
public void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex
in interface ListSelectionModel
setLeadSelectionIndex
in class DefaultListSelectionModel
public int getMinSelectionIndex()
getMinSelectionIndex
in interface ListSelectionModel
getMinSelectionIndex
in class CheckBoxListSelectionModel
public int getMaxSelectionIndex()
getMaxSelectionIndex
in interface ListSelectionModel
getMaxSelectionIndex
in class DefaultListSelectionModel
public int getAnchorSelectionIndex()
getAnchorSelectionIndex
in interface ListSelectionModel
getAnchorSelectionIndex
in class DefaultListSelectionModel
public int getLeadSelectionIndex()
getLeadSelectionIndex
in interface ListSelectionModel
getLeadSelectionIndex
in class DefaultListSelectionModel