public static interface Grid.SelectionModel.Multi extends Grid.SelectionModel
This interface has a contract of having the same behavior, no matter how the selection model is interacted with. In other words, if something is forbidden to do in e.g. the user interface, it must also be forbidden to do in the server-side and client-side APIs.
Grid.SelectionModel.HasUserSelectionAllowed, Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.SingleClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener| Modifier and Type | Method and Description |
|---|---|
boolean |
deselect(Collection<?> itemIds)
Marks items as deselected.
|
boolean |
deselect(Object... itemIds)
Marks items as deselected.
|
boolean |
deselectAll()
Marks all the items in the current Container as deselected
|
boolean |
select(Collection<?> itemIds)
Marks items as selected.
|
boolean |
select(Object... itemIds)
Marks items as selected.
|
boolean |
selectAll()
Marks all the items in the current Container as selected
|
boolean |
setSelected(Collection<?> itemIds)
Marks items as selected while deselecting all items not in the
given Collection.
|
boolean |
setSelected(Object... itemIds)
Marks items as selected while deselecting all items not in the
varargs array.
|
getSelectedRows, isSelected, reset, setGridaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdboolean select(Object... itemIds) throws IllegalArgumentException
This method does not clear any previous selection state, only adds to it.
itemIds - the itemId(s) to mark as selectedtrue if the selection state changed.
false if all the given itemIds already were
selectedIllegalArgumentException - if the itemIds varargs array is
null or given itemIds don't exist in the
container of Griddeselect(Object...)boolean select(Collection<?> itemIds) throws IllegalArgumentException
This method does not clear any previous selection state, only adds to it.
itemIds - the itemIds to mark as selectedtrue if the selection state changed.
false if all the given itemIds already were
selectedIllegalArgumentException - if itemIds is null or given
itemIds don't exist in the container of Griddeselect(Collection)boolean deselect(Object... itemIds) throws IllegalArgumentException
itemIds - the itemId(s) to remove from being selectedtrue if the selection state changed.
false if none the given itemIds were
selected previouslyIllegalArgumentException - if the itemIds varargs array is
nullselect(Object...)boolean deselect(Collection<?> itemIds) throws IllegalArgumentException
itemIds - the itemId(s) to remove from being selectedtrue if the selection state changed.
false if none the given itemIds were
selected previouslyIllegalArgumentException - if itemIds is nullselect(Collection)boolean selectAll()
true iff some items were previously not
selecteddeselectAll()boolean deselectAll()
true iff some items were previously selectedselectAll()boolean setSelected(Collection<?> itemIds) throws IllegalArgumentException
itemIds - the itemIds to mark as selectedtrue if the selection state changed.
false if all the given itemIds already were
selectedIllegalArgumentException - if itemIds is null or given
itemIds don't exist in the container of Gridboolean setSelected(Object... itemIds) throws IllegalArgumentException
itemIds - the itemIds to mark as selectedtrue if the selection state changed.
false if all the given itemIds already were
selectedIllegalArgumentException - if the itemIds varargs array is
null or given itemIds don't exist in the
container of GridCopyright © 2019 Vaadin Ltd. All rights reserved.