Class AbstractRowHandleSelectionModel<T>
- java.lang.Object
-
- com.vaadin.v7.client.widget.grid.selection.AbstractRowHandleSelectionModel<T>
-
- Type Parameters:
T- The grid's row type
- All Implemented Interfaces:
SelectionModel<T>
- Direct Known Subclasses:
SelectionModelMulti,SelectionModelNone,SelectionModelSingle
public abstract class AbstractRowHandleSelectionModel<T> extends Object implements SelectionModel<T>
An abstract class that adds a consistent API for common methods that's needed by Vaadin's server-based selection models to work.Note: This should be an interface instead of an abstract class, if only we could define protected methods in an interface.
- Since:
- 7.4
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.v7.client.widget.grid.selection.SelectionModel
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractRowHandleSelectionModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract booleandeselectByHandle(DataSource.RowHandle<T> handle)Deselect a row, based on itsRowHandle.protected abstract booleanselectByHandle(DataSource.RowHandle<T> handle)Select a row, based on itsRowHandle.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.v7.client.widget.grid.selection.SelectionModel
getSelectedRows, getSelectionColumnRenderer, isSelected, reset, setGrid
-
-
-
-
Method Detail
-
selectByHandle
protected abstract boolean selectByHandle(DataSource.RowHandle<T> handle)
Select a row, based on itsRowHandle.Note: this method may not fire selection change events.
- Parameters:
handle- the handle to select by- Returns:
trueif the selection state was changed by this call- Throws:
UnsupportedOperationException- if the selection model does not support either handles or selection
-
deselectByHandle
protected abstract boolean deselectByHandle(DataSource.RowHandle<T> handle) throws UnsupportedOperationException
Deselect a row, based on itsRowHandle.Note: this method may not fire selection change events.
- Parameters:
handle- the handle to deselect by- Returns:
trueif the selection state was changed by this call- Throws:
UnsupportedOperationException- if the selection model does not support either handles or deselection
-
-