public class DefaultListSelectionModel extends Object implements ListSelectionModel
| Constructor and Description |
|---|
DefaultListSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListSelectionListener(ListSelectionListener listener) |
void |
addSelectionInterval(int index0,
int index1) |
protected void |
clearOutsideRange(int min,
int max) |
void |
clearSelection() |
List<Integer> |
getAllSelectedIndexes() |
List<ListSelectionListener> |
getListeners() |
int |
getMaxSelectionIndex() |
int |
getMinSelectionIndex() |
void |
insertIndexRange(int index,
int length)
Inserts new indexes.
|
boolean |
isEmpty() |
boolean |
isSelectedIndex(int index) |
void |
removeIndexRange(int index,
int length)
removes indexes.
|
void |
removeListSelectionListener(ListSelectionListener listener) |
void |
setSelectionInterval(int index0,
int index1) |
void |
toggleSelectionInterval(int index0,
int index1) |
public void insertIndexRange(int index,
int length)
ListSelectionModelPlease note that this is not firing any event!
insertIndexRange in interface ListSelectionModelindex - the position to insert new indexes atlength - the length of indexes to insertpublic void removeIndexRange(int index,
int length)
ListSelectionModelPlease note that this is not firing any event!
removeIndexRange in interface ListSelectionModelindex - the position to removes new indexes atlength - the length of indexes to insertpublic void setSelectionInterval(int index0,
int index1)
setSelectionInterval in interface ListSelectionModelpublic void addSelectionInterval(int index0,
int index1)
addSelectionInterval in interface ListSelectionModelpublic void toggleSelectionInterval(int index0,
int index1)
toggleSelectionInterval in interface ListSelectionModelprotected void clearOutsideRange(int min,
int max)
public List<Integer> getAllSelectedIndexes()
getAllSelectedIndexes in interface ListSelectionModelpublic int getMinSelectionIndex()
getMinSelectionIndex in interface ListSelectionModelpublic int getMaxSelectionIndex()
getMaxSelectionIndex in interface ListSelectionModelpublic boolean isEmpty()
isEmpty in interface ListSelectionModelpublic void clearSelection()
clearSelection in interface ListSelectionModelpublic boolean isSelectedIndex(int index)
isSelectedIndex in interface ListSelectionModelpublic List<ListSelectionListener> getListeners()
public void addListSelectionListener(ListSelectionListener listener)
addListSelectionListener in interface ListSelectionModelpublic void removeListSelectionListener(ListSelectionListener listener)
removeListSelectionListener in interface ListSelectionModelCopyright © 2017 SAP SE. All Rights Reserved.