|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectionModel
A basic selection model interface that can be used in any situation where one or more contiguous or noncontiguous "rows" may be selected.
The SelectionModel is used to define which rows are selected in a collection of rows. From the perspective of the SelectionModel, index 0 is the first index. Any index value < 0 is invalid, as is any index greater than the size of the collection. It is up to the implementation of SelectionModel to ensure that the upper index is valid.
Method Summary | |
---|---|
void |
addSelectionModelListener(SelectionModelListener listener)
Add a listener to the list that's notified each time a change to the selection occurs. |
int[] |
getSelectionIndices()
|
void |
removeSelectionModelListener(SelectionModelListener listener)
Remove the given listener from the list that's notified each time a change to the selection occurs |
void |
setSelectionIndices(int[] indices)
|
Method Detail |
---|
void setSelectionIndices(int[] indices)
indices
- int[] getSelectionIndices()
void addSelectionModelListener(SelectionModelListener listener)
listener
- The listener to be notifiedvoid removeSelectionModelListener(SelectionModelListener listener)
listener
- the listener to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |