R
- the type of rows in the table modelpublic interface SelectionModel<R>
StateObserver selectionEmptyObserver()
StateObserver selectionNotEmptyObserver()
StateObserver multipleSelectionObserver()
StateObserver singleSelectionObserver()
State singleSelectionModeState()
void addSelectionListener(EventListener listener)
listener
- a listener to be notified each time the selection changesvoid removeSelectionListener(EventListener listener)
listener
- the listener to removevoid addSelectedIndexListener(EventDataListener<Integer> listener)
listener
- a listener to be notified each time the selected index changesvoid removeSelectedIndexListener(EventDataListener<Integer> listener)
listener
- the listener to removevoid addSelectedIndexesListener(EventDataListener<List<Integer>> listener)
listener
- a listener to be notified each time the selected indexes changevoid removeSelectedIndexesListener(EventDataListener<List<Integer>> listener)
listener
- the listener to removevoid addSelectedItemListener(EventDataListener<R> listener)
listener
- a listener to be notified each time the selected item changesvoid removeSelectedItemListener(EventDataListener<R> listener)
listener
- the listener to removevoid addSelectedItemsListener(EventDataListener<List<R>> listener)
listener
- a listener to be notified each time the selected items changevoid removeSelectedItemsListener(EventDataListener<List<R>> listener)
listener
- the listener to removevoid moveSelectionDown()
addSelectionListener(EventListener)
void moveSelectionUp()
addSelectionListener(EventListener)
int getSelectedIndex()
void addSelectedIndex(int index)
index
index
- the indexvoid removeSelectedIndex(int index)
index
from the selectionindex
- the indexvoid removeSelectedIndexes(Collection<Integer> indexes)
indexes
- the indexesvoid setSelectedIndex(int index)
index
index
- the indexvoid setSelectedIndexes(Collection<Integer> indexes)
indexes
- the indexes to selectList<Integer> getSelectedIndexes()
void selectAll()
addSelectionListener(EventListener)
void addSelectedIndexes(Collection<Integer> indexes)
indexes
- the indexes to add to the selectionint selectionCount()
void setSelectedItems(Collection<R> items)
items
- the items to selectR getSelectedItem()
void setSelectedItem(R item)
item
- the item to selectvoid addSelectedItem(R item)
item
- the item to add to the selectionvoid addSelectedItems(Collection<R> items)
items
- the items to add to the selectionvoid removeSelectedItem(R item)
item
- the item to remove from the selectionvoid removeSelectedItems(Collection<R> items)
items
- the items to remove from the selectionvoid clearSelection()
boolean isSelectionEmpty()
boolean isSelectionNotEmpty()