T - the type of the items to selectpublic static class SelectionModel.NoSelectionModel<T> extends Object implements SelectionModel<T>
SelectionModel.NoSelectionModel<T>| Constructor and Description |
|---|
NoSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
deselect(T item)
Deselects the given item.
|
void |
deselectAll()
Deselects all currently selected items.
|
boolean |
isMultiSelectionAllowed()
Checks if the user is allowed to have more than on item selected.
|
boolean |
isSelected(T item)
Returns whether the given item is currently selected.
|
boolean |
isSelectionAllowed()
Checks if the user is allowed to change the selection.
|
void |
select(T 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 void select(T item)
SelectionModelselect in interface SelectionModel<T>item - the item to select, not nullpublic void deselect(T item)
SelectionModeldeselect in interface SelectionModel<T>item - the item to deselect, not nullpublic boolean isSelected(T item)
SelectionModelisSelected in interface SelectionModel<T>item - the item to check, not nulltrue if the item is selected, false otherwisepublic void deselectAll()
SelectionModeldeselectAll in interface SelectionModel<T>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<T>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<T>true if the user is allowed to change the selection,
false otherwisepublic boolean isMultiSelectionAllowed()
SelectionModelisMultiSelectionAllowed in interface SelectionModel<T>true if the user is allowed to select multiple
items, false otherwiseCopyright © 2023 Vaadin Ltd. All rights reserved.