T - the type of items in gridpublic interface SingleSelectionModel<T> extends GridSelectionModel<T>, SelectionModel.Single<T>
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSelectionModel.Multi<T>, SelectionModel.Single<T>| Modifier and Type | Method and 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. |
isUserSelectionAllowed, remove, setUserSelectionAllowedaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIddeselectAll, getFirstSelectedItem, getSelectedItem, getSelectedItems, isDeselectAllowed, select, setDeselectAllowed, setSelectedItemdeselect, isSelectedSingleSelect<T> asSingleSelect()
Binder.default Registration addSelectionListener(SelectionListener<T> listener)
Use addSingleSelectionListener(SingleSelectionListener) for more
specific single selection event.
addSelectionListener in interface SelectionModel<T>listener - the listener to addaddSingleSelectionListener(SingleSelectionListener)Registration addSingleSelectionListener(SingleSelectionListener<T> listener)
listener - the value change listener, not nullCopyright © 2021 Vaadin Ltd. All rights reserved.