|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexSelectionModel
Model for selections of a single or multiple (discontiguous) indexes.
Field Summary | |
---|---|
static int |
MULTI_SELECTION_MODE
|
static int |
SINGLE_SELECTION_MODE
|
Method Summary | |
---|---|
void |
addSelectionListener(IndexSelectionListener listener)
Adds the parameter listener |
java.util.List<IndexSelectionListener> |
getListeners()
Retrieves all Listeners. |
int[] |
getSelectedIndeces()
Retrieves the selected indeces, or {-1}. |
int |
getSelectedIndex()
Retrieves the selected index. |
int |
getSelectionMode()
Retrieves the mode. |
void |
removeSelectionListener(IndexSelectionListener listener)
Removes the parameter listener. |
void |
setSelection(int... sel)
Sets the selection. |
void |
setSelectionMode(int mode)
Sets the mode. |
Field Detail |
---|
static final int SINGLE_SELECTION_MODE
static final int MULTI_SELECTION_MODE
Method Detail |
---|
int getSelectedIndex()
int[] getSelectedIndeces()
int getSelectionMode()
void setSelectionMode(int mode)
mode
- On of SINGLE_SELECTION_MODE or MULTI_SELECTION_MODE
java.lang.IllegalArgumentException
- if parameter is not one of SINGLE_SELECTION_MODE or MULTI_SELECTION_MODEvoid addSelectionListener(IndexSelectionListener listener)
listener
- void removeSelectionListener(IndexSelectionListener listener)
listener
- java.util.List<IndexSelectionListener> getListeners()
void setSelection(int... sel)
sel
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |