@Deprecated public static class Grid.SingleSelectionModel extends Grid.AbstractSelectionModel implements Grid.SelectionModel.Single, Grid.SelectionModel.HasUserSelectionAllowed
SelectionModel.Single.Grid.SelectionModel.HasUserSelectionAllowed, Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.SingleClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerselection| Constructor and Description |
|---|
SingleSelectionModel()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
extend(AbstractClientConnector target)
Deprecated.
|
Object |
getSelectedRow()
Deprecated.
Gets the item id of the currently selected item.
|
protected SingleSelectionModelState |
getState()
Deprecated.
|
protected SingleSelectionModelState |
getState(boolean markAsDirty)
Deprecated.
|
boolean |
isDeselectAllowed()
Deprecated.
Sets whether it's allowed to deselect the selected row through
the UI.
|
boolean |
isUserSelectionAllowed()
Deprecated.
Checks if the user is allowed to change the selection.
|
void |
reset()
Deprecated.
Resets the selection state.
|
boolean |
select(Object itemId)
Deprecated.
Marks an item as selected.
|
protected boolean |
select(Object itemId,
boolean refresh)
Deprecated.
|
void |
setDeselectAllowed(boolean deselectAllowed)
Deprecated.
Sets whether it's allowed to deselect the selected row through
the UI.
|
void |
setUserSelectionAllowed(boolean userSelectionAllowed)
Deprecated.
Sets whether the user is allowed to change the selection.
|
checkItemIdExists, checkItemIdsExist, destroyData, fireSelectionEvent, generateData, getItemId, getSelectedRows, isSelected, setGridaddComponentToGrid, getColumn, getParentGrid, refreshRow, remove, removeComponentFromGridgetParent, getSupportedParentType, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSelectedRows, isSelected, setGridaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected void extend(AbstractClientConnector target)
extend in class Grid.AbstractGridExtensionpublic boolean select(Object itemId)
Grid.SelectionModel.Singleselect in interface Grid.SelectionModel.SingleitemId - the itemId to mark as selected; null for
deselecttrue if the selection state changed.
false if the itemId already was selectedprotected boolean select(Object itemId, boolean refresh)
public Object getSelectedRow()
Grid.SelectionModel.SinglegetSelectedRow in interface Grid.SelectionModel.Singlenull if nothing is selectedpublic void reset()
If an item is selected, it will become deselected.
reset in interface Grid.SelectionModelpublic void setDeselectAllowed(boolean deselectAllowed)
Grid.SelectionModel.SinglesetDeselectAllowed in interface Grid.SelectionModel.SingledeselectAllowed - true if the selected row can be
deselected without selecting another row instead;
otherwise false.public boolean isDeselectAllowed()
Grid.SelectionModel.SingleisDeselectAllowed in interface Grid.SelectionModel.Singletrue if deselection is allowed; otherwise
falseprotected SingleSelectionModelState getState()
getState in class AbstractClientConnectorprotected SingleSelectionModelState getState(boolean markAsDirty)
getState in class AbstractClientConnectorpublic boolean isUserSelectionAllowed()
Grid.SelectionModel.HasUserSelectionAllowedisUserSelectionAllowed in interface Grid.SelectionModel.HasUserSelectionAllowedtrue if the user is allowed to change the
selection, false otherwisepublic void setUserSelectionAllowed(boolean userSelectionAllowed)
Grid.SelectionModel.HasUserSelectionAllowedsetUserSelectionAllowed in interface Grid.SelectionModel.HasUserSelectionAlloweduserSelectionAllowed - true if the user is allowed to change the
selection, false otherwiseCopyright © 2019 Vaadin Ltd. All rights reserved.