T
- The grid's row typepublic abstract class AbstractRowHandleSelectionModel<T> extends Object implements SelectionModel<T>
Note: This should be an interface instead of an abstract class, if only we could define protected methods in an interface.
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T>
Constructor and Description |
---|
AbstractRowHandleSelectionModel() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
deselectByHandle(DataSource.RowHandle<T> handle)
Deselect a row, based on its
RowHandle . |
protected abstract boolean |
selectByHandle(DataSource.RowHandle<T> handle)
Select a row, based on its
RowHandle . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectedRows, getSelectionColumnRenderer, isSelected, reset, setGrid
protected abstract boolean selectByHandle(DataSource.RowHandle<T> handle)
RowHandle
.
Note: this method may not fire selection change events.
handle
- the handle to select bytrue
iff the selection state was changed by this
callUnsupportedOperationException
- if the selection model does not support either handles or
selectionprotected abstract boolean deselectByHandle(DataSource.RowHandle<T> handle) throws UnsupportedOperationException
RowHandle
.
Note: this method may not fire selection change events.
handle
- the handle to deselect bytrue
iff the selection state was changed by this
callUnsupportedOperationException
- if the selection model does not support either handles or
deselectionCopyright © 2023 Vaadin Ltd. All rights reserved.