protected class SingleSelectionModelConnector.SingleSelectionModel extends Object implements SelectionModel<elemental.json.JsonObject>
SelectionModel.NoSelectionModel<T>| Modifier | Constructor and Description |
|---|---|
protected |
SingleSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
deselect(elemental.json.JsonObject item)
Deselects the given item.
|
void |
deselectAll()
Deselects all currently selected items.
|
boolean |
isDeselectAllowed()
Gets whether it's allowed to deselect the selected row through the
UI.
|
boolean |
isMultiSelectionAllowed()
Checks if the user is allowed to have more than on item selected.
|
boolean |
isSelected(elemental.json.JsonObject item)
Returns whether the given item is currently selected.
|
boolean |
isSelectionAllowed()
Checks if the user is allowed to change the selection.
|
void |
select(elemental.json.JsonObject item)
Selects the given item.
|
void |
setDeselectAllowed(boolean deselectAllowed)
Sets whether it's allowed to deselect the selected row through the
UI.
|
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 void select(elemental.json.JsonObject item)
SelectionModelselect in interface SelectionModel<elemental.json.JsonObject>item - the item to select, not nullpublic void deselect(elemental.json.JsonObject item)
SelectionModeldeselect in interface SelectionModel<elemental.json.JsonObject>item - the item to deselect, not nullpublic boolean isSelected(elemental.json.JsonObject item)
SelectionModelisSelected in interface SelectionModel<elemental.json.JsonObject>item - the item to check, not nulltrue if the item is selected, false otherwisepublic void deselectAll()
SelectionModeldeselectAll in interface SelectionModel<elemental.json.JsonObject>public 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<elemental.json.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<elemental.json.JsonObject>true if the user is allowed to change the selection,
false otherwisepublic boolean isMultiSelectionAllowed()
SelectionModelisMultiSelectionAllowed in interface SelectionModel<elemental.json.JsonObject>true if the user is allowed to select multiple
items, false otherwisepublic void setDeselectAllowed(boolean deselectAllowed)
deselectAllowed - true if the selected row can be deselected
without selecting another row instead; otherwise
false.public boolean isDeselectAllowed()
true if deselection is allowed; otherwise
falseCopyright © 2023 Vaadin Ltd. All rights reserved.