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.DetachListener
SelectionModel.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, setUserSelectionAllowed
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
deselectAll, getFirstSelectedItem, getSelectedItem, getSelectedItems, isDeselectAllowed, select, setDeselectAllowed, setSelectedItem
deselect, isSelected
SingleSelect<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 null
Copyright © 2017 Vaadin Ltd. All rights reserved.