|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static int |
MULTIPLE_INTERVAL_SELECTION
|
static int |
SINGLE_INTERVAL_SELECTION
|
static int |
SINGLE_SELECTION
|
Method Summary | |
void |
addListSelectionListener(ListSelectionListener l)
Add a listener to the list that is notified each time the selection changes. |
void |
addSelectionInterval(int index0,
int index1)
Change the selection to be the set union between the current selection and the indices between index0 and index1 inclusive. |
void |
clearSelection()
Change the selection to be the empty set. |
int |
getMaxSelectionIndex()
Returns the last selected index, or -1 if the selection is empty. |
int |
getMinSelectionIndex()
Returns the first selected index, or -1 if the selection is empty. |
int |
getSelectionMode()
Returns the current selection mode. |
void |
insertIndexInterval(int index,
int length,
boolean before)
Insert length indices beginning before/after index, without notifying the ListSelectionListeners. |
boolean |
isSelectedIndex(int index)
Returns true if the specified index is selected. |
boolean |
isSelectionEmpty()
Returns true if no indices are selected. |
void |
removeIndexInterval(int index0,
int index1)
Remove the indices in the interval index0,index1 (inclusive) from the selection model, without notifying the ListSelectionListeners. |
void |
removeListSelectionListener(ListSelectionListener l)
Remove the specified listener from the list of listeners. |
void |
removeSelectionInterval(int index0,
int index1)
Change the selection to be the set difference between the current selection and the indices between index0 and index1 inclusive. |
void |
setSelectionInterval(int index0,
int index1)
Change the selection to be between index0 and index1 inclusive. |
void |
setSelectionMode(int mode_)
Set the selection mode. |
Field Detail |
public static final int SINGLE_SELECTION
public static final int SINGLE_INTERVAL_SELECTION
public static final int MULTIPLE_INTERVAL_SELECTION
Method Detail |
public void addListSelectionListener(ListSelectionListener l)
public void removeListSelectionListener(ListSelectionListener l)
public void clearSelection()
public void addSelectionInterval(int index0, int index1)
public void removeSelectionInterval(int index0, int index1)
public void setSelectionInterval(int index0, int index1)
public void setSelectionMode(int mode_)
public int getSelectionMode()
public boolean isSelectedIndex(int index)
public boolean isSelectionEmpty()
public int getMinSelectionIndex()
public int getMaxSelectionIndex()
public void insertIndexInterval(int index, int length, boolean before)
public void removeIndexInterval(int index0, int index1)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |