com.vaadin.ui.components.grid.
Interface SingleSelectionModel<T>
-
Type Parameters:
T
- the type of items in gridAll Superinterfaces:
ClientConnector
,Connector
,Extension
,GridSelectionModel<T>
,SelectionModel<T>
,SelectionModel.Single<T>
,Serializable
All Known Implementing Classes:
public interface SingleSelectionModel<T> extends GridSelectionModel<T>, SelectionModel.Single<T>
Single selection model interface for Grid.
Since:
8.0
Author:
Vaadin Ltd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.data.SelectionModel
SelectionModel.Multi<T>, SelectionModel.Single<T>
-
-
Method Summary
All Methods Modifier and Type Method Description default Registration
addSelectionListener(SelectionListener<T> listener)
Adds a generic listener to this selection model, accepting both single and multiselection events.
Registration
addSingleSelectionListener(SingleSelectionListener<T> listener)
Adds a single selection listener that is called when the value of this select is changed either by the user or programmatically.
SingleSelect<T>
asSingleSelect()
Gets a wrapper to use this single selection model as a single select in
Binder
.-
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
-
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Methods inherited from interface com.vaadin.ui.components.grid.GridSelectionModel
isUserSelectionAllowed, remove, setUserSelectionAllowed
-
Methods inherited from interface com.vaadin.data.SelectionModel
deselect, isSelected
-
Methods inherited from interface com.vaadin.data.SelectionModel.Single
deselectAll, getFirstSelectedItem, getSelectedItem, getSelectedItems, isDeselectAllowed, select, setDeselectAllowed, setSelectedItem
-
-
-
-
Method Detail
-
asSingleSelect
SingleSelect<T> asSingleSelect()
Gets a wrapper to use this single selection model as a single select in
Binder
.Returns:
the single select wrapper
-
addSelectionListener
default Registration addSelectionListener(SelectionListener<T> listener)
Adds a generic listener to this selection model, accepting both single and multiselection events.
Use
addSingleSelectionListener(SingleSelectionListener)
for more specific single selection event.Specified by:
addSelectionListener
in interfaceSelectionModel<T>
Parameters:
listener
- the listener to addReturns:
a registration handle for removing the listener
See Also:
-
addSingleSelectionListener
Registration addSingleSelectionListener(SingleSelectionListener<T> listener)
Adds a single selection listener that is called when the value of this select is changed either by the user or programmatically.
Parameters:
listener
- the value change listener, notnull
Returns:
a registration for the listener
-
-