Package com.vaadin.ui.components.grid
Interface SingleSelectionModel<T>
-
- Type Parameters:
T- the type of items in grid
- All Superinterfaces:
ClientConnector,Connector,Extension,GridSelectionModel<T>,SelectionModel<T>,SelectionModel.Single<T>,Serializable
- All Known Implementing Classes:
SingleSelectionModelImpl
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 Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RegistrationaddSelectionListener(SelectionListener<T> listener)Adds a generic listener to this selection model, accepting both single and multiselection events.RegistrationaddSingleSelectionListener(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 inBinder.-
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 inBinder.- 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:
addSelectionListenerin interfaceSelectionModel<T>- Parameters:
listener- the listener to add- Returns:
- a registration handle for removing the listener
- See Also:
addSingleSelectionListener(SingleSelectionListener)
-
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
-
-