Interface ListSelectionModel
- All Known Implementing Classes:
DefaultListSelectionModel
public interface ListSelectionModel
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectionInterval(int index0, int index1) voidintintvoidinsertIndexRange(int index, int length) Inserts new indexes.booleanisSelectedIndex(int index) voidremoveIndexRange(int index, int length) removes indexes.voidsetSelectionInterval(int index0, int index1) voidtoggleSelectionInterval(int index0, int index1)
-
Method Details
-
isSelectedIndex
boolean isSelectedIndex(int index) -
clearSelection
void clearSelection() -
setSelectionInterval
void setSelectionInterval(int index0, int index1) -
addSelectionInterval
void addSelectionInterval(int index0, int index1) -
toggleSelectionInterval
void toggleSelectionInterval(int index0, int index1) -
insertIndexRange
void insertIndexRange(int index, int length) Inserts new indexes. This means that existing selections are shifted to new positions.Please note that this is not firing any event!
- Parameters:
index- the position to insert new indexes atlength- the length of indexes to insert
-
removeIndexRange
void removeIndexRange(int index, int length) removes indexes. This means that existing selections are shifted to new positions.Please note that this is not firing any event!
- Parameters:
index- the position to removes new indexes atlength- the length of indexes to insert
-
getMinSelectionIndex
int getMinSelectionIndex() -
getMaxSelectionIndex
int getMaxSelectionIndex() -
getAllSelectedIndexes
-