@Deprecated public static interface Grid.SelectionModel extends Extension
Grid.AbstractGridExtension.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Grid.SelectionModel.HasUserSelectionAllowed
Deprecated.
|
static interface |
Grid.SelectionModel.Multi
Deprecated.
|
static interface |
Grid.SelectionModel.None
Deprecated.
|
static interface |
Grid.SelectionModel.Single
Deprecated.
|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Modifier and Type | Method and Description |
|---|---|
Collection<Object> |
getSelectedRows()
Deprecated.
Returns a collection of all the currently selected itemIds.
|
boolean |
isSelected(Object itemId)
Deprecated.
Checks whether an item is selected or not.
|
void |
reset()
Deprecated.
Resets the SelectiomModel to an initial state.
|
void |
setGrid(Grid grid)
Deprecated.
Injects the current
Grid instance into the SelectionModel. |
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerboolean isSelected(Object itemId)
itemId - the item id to check fortrue if the item is selectedCollection<Object> getSelectedRows()
void setGrid(Grid grid)
Grid instance into the SelectionModel.
This method should usually call the extend method of
AbstractExtension.
Note: This method should not be called manually.
grid - the Grid in which the SelectionModel currently is, or
null when a selection model is being detached
from a Grid.void reset()
Most often this means that the selection state is cleared, but implementations are free to interpret the "initial state" as they wish. Some, for example, may want to keep the first selected item as selected.
Copyright © 2019 Vaadin Ltd. All rights reserved.