Package com.vaadin.v7.ui
Interface Grid.SelectionModel
-
- All Superinterfaces:
ClientConnector
,com.vaadin.shared.Connector
,Extension
,Serializable
- All Known Subinterfaces:
Grid.SelectionModel.HasUserSelectionAllowed
,Grid.SelectionModel.Multi
,Grid.SelectionModel.None
,Grid.SelectionModel.Single
- All Known Implementing Classes:
Grid.AbstractSelectionModel
,Grid.MultiSelectionModel
,Grid.NoSelectionModel
,Grid.SingleSelectionModel
- Enclosing class:
- Grid
@Deprecated public static interface Grid.SelectionModel extends Extension
Deprecated.The server-side interface that controls Grid's selection state. SelectionModel should extendGrid.AbstractGridExtension
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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 currentGrid
instance into the SelectionModel.-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
-
-
-
Method Detail
-
isSelected
boolean isSelected(Object itemId)
Deprecated.Checks whether an item is selected or not.- Parameters:
itemId
- the item id to check for- Returns:
true
if the item is selected
-
getSelectedRows
Collection<Object> getSelectedRows()
Deprecated.Returns a collection of all the currently selected itemIds.- Returns:
- a collection of all the currently selected itemIds
-
setGrid
void setGrid(Grid grid)
Deprecated.Injects the currentGrid
instance into the SelectionModel. This method should usually call the extend method ofAbstractExtension
.Note: This method should not be called manually.
- Parameters:
grid
- the Grid in which the SelectionModel currently is, ornull
when a selection model is being detached from a Grid.
-
reset
void reset()
Deprecated.Resets the SelectiomModel to an initial state.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.
-
-