|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.algosome.common.event.IndexSelectionModelImpl
public class IndexSelectionModelImpl
Implementation of the IndexSelectionModel interface. Defaults to single selection mode
Field Summary |
---|
Fields inherited from interface com.algosome.common.event.IndexSelectionModel |
---|
MULTI_SELECTION_MODE, SINGLE_SELECTION_MODE |
Constructor Summary | |
---|---|
IndexSelectionModelImpl()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexSelectionModelImpl()
Method Detail |
---|
public void addSelectionListener(IndexSelectionListener listener)
IndexSelectionModel
addSelectionListener
in interface IndexSelectionModel
public int[] getSelectedIndeces()
IndexSelectionModel
getSelectedIndeces
in interface IndexSelectionModel
public int getSelectedIndex()
IndexSelectionModel
getSelectedIndex
in interface IndexSelectionModel
public int getSelectionMode()
IndexSelectionModel
getSelectionMode
in interface IndexSelectionModel
public void removeSelectionListener(IndexSelectionListener listener)
IndexSelectionModel
removeSelectionListener
in interface IndexSelectionModel
public void setSelection(int... sel)
IndexSelectionModel
setSelection
in interface IndexSelectionModel
public void setSelectionMode(int mode)
IndexSelectionModel
setSelectionMode
in interface IndexSelectionModel
mode
- On of SINGLE_SELECTION_MODE or MULTI_SELECTION_MODEpublic java.util.List<IndexSelectionListener> getListeners()
IndexSelectionModel
getListeners
in interface IndexSelectionModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |