Interface ListSelectionModel
-
- All Known Implementing Classes:
DefaultListSelectionModel
public interface ListSelectionModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSelectionInterval(int index0, int index1)voidclearSelection()java.util.List<java.lang.Integer>getAllSelectedIndexes()intgetMaxSelectionIndex()intgetMinSelectionIndex()voidinsertIndexRange(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 Detail
-
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
java.util.List<java.lang.Integer> getAllSelectedIndexes()
-
-