protected class MultiSelectionModelConnector.MultiSelectionModel extends Object implements SelectionModel<JsonObject>, SelectionModelWithSelectionColumn
SelectionModel.NoSelectionModel<T>| Modifier | Constructor and Description |
|---|---|
protected |
MultiSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
deselect(JsonObject item)
Deselects the given item.
|
void |
deselectAll()
Deselects all currently selected items.
|
Renderer<Boolean> |
getRenderer()
Returns a new instance of the Renderer for selection column.
|
boolean |
isMultiSelectionAllowed()
Checks if the user is allowed to have more than on item selected.
|
boolean |
isSelected(JsonObject item)
Returns whether the given item is currently selected.
|
boolean |
isSelectionAllowed()
Checks if the user is allowed to change the selection.
|
void |
select(JsonObject item)
Selects the given item.
|
void |
setSelectionAllowed(boolean selectionAllowed)
Sets whether the user is allowed to change the selection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisItemSelectedpublic Renderer<Boolean> getRenderer()
SelectionModelWithSelectionColumngetRenderer in interface SelectionModelWithSelectionColumnpublic void select(JsonObject item)
SelectionModelselect in interface SelectionModel<JsonObject>item - the item to select, not nullpublic void deselect(JsonObject item)
SelectionModeldeselect in interface SelectionModel<JsonObject>item - the item to deselect, not nullpublic void deselectAll()
SelectionModeldeselectAll in interface SelectionModel<JsonObject>public boolean isSelected(JsonObject item)
SelectionModelisSelected in interface SelectionModel<JsonObject>item - the item to check, not nulltrue if the item is selected, false otherwisepublic void setSelectionAllowed(boolean selectionAllowed)
SelectionModelThe check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
setSelectionAllowed in interface SelectionModel<JsonObject>selectionAllowed - true if the user is allowed to change the
selection, false otherwisepublic boolean isSelectionAllowed()
SelectionModelThe check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
isSelectionAllowed in interface SelectionModel<JsonObject>true if the user is allowed to change the selection,
false otherwisepublic boolean isMultiSelectionAllowed()
SelectionModelisMultiSelectionAllowed in interface SelectionModel<JsonObject>true if the user is allowed to select multiple
items, false otherwiseCopyright © 2018 Vaadin Ltd. All rights reserved.