Class SelectionModel.NoSelectionModel<T>
- java.lang.Object
-
- com.vaadin.client.widget.grid.selection.SelectionModel.NoSelectionModel<T>
-
- Type Parameters:
T- the type of the items to select
- All Implemented Interfaces:
SelectionModel<T>
- Enclosing interface:
- SelectionModel<T>
public static class SelectionModel.NoSelectionModel<T> extends Object implements SelectionModel<T>
Selection model that does not allow any selection.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel
SelectionModel.NoSelectionModel<T>
-
-
Constructor Summary
Constructors Constructor Description NoSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeselect(T item)Deselects the given item.voiddeselectAll()Deselects all currently selected items.booleanisMultiSelectionAllowed()Checks if the user is allowed to have more than on item selected.booleanisSelected(T item)Returns whether the given item is currently selected.booleanisSelectionAllowed()Checks if the user is allowed to change the selection.voidselect(T item)Selects the given item.voidsetSelectionAllowed(boolean selectionAllowed)Sets whether the user is allowed to change the selection.
-
-
-
Method Detail
-
select
public void select(T item)
Description copied from interface:SelectionModelSelects the given item. If another item was already selected, that item is deselected.- Specified by:
selectin interfaceSelectionModel<T>- Parameters:
item- the item to select, not null
-
deselect
public void deselect(T item)
Description copied from interface:SelectionModelDeselects the given item. If the item is not currently selected, does nothing.- Specified by:
deselectin interfaceSelectionModel<T>- Parameters:
item- the item to deselect, not null
-
isSelected
public boolean isSelected(T item)
Description copied from interface:SelectionModelReturns whether the given item is currently selected.- Specified by:
isSelectedin interfaceSelectionModel<T>- Parameters:
item- the item to check, not null- Returns:
trueif the item is selected,falseotherwise
-
deselectAll
public void deselectAll()
Description copied from interface:SelectionModelDeselects all currently selected items.- Specified by:
deselectAllin interfaceSelectionModel<T>
-
setSelectionAllowed
public void setSelectionAllowed(boolean selectionAllowed)
Description copied from interface:SelectionModelSets whether the user is allowed to change the selection.The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
- Specified by:
setSelectionAllowedin interfaceSelectionModel<T>- Parameters:
selectionAllowed-trueif the user is allowed to change the selection,falseotherwise
-
isSelectionAllowed
public boolean isSelectionAllowed()
Description copied from interface:SelectionModelChecks if the user is allowed to change the selection.The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.
- Specified by:
isSelectionAllowedin interfaceSelectionModel<T>- Returns:
trueif the user is allowed to change the selection,falseotherwise
-
isMultiSelectionAllowed
public boolean isMultiSelectionAllowed()
Description copied from interface:SelectionModelChecks if the user is allowed to have more than on item selected.- Specified by:
isMultiSelectionAllowedin interfaceSelectionModel<T>- Returns:
trueif the user is allowed to select multiple items,falseotherwise
-
-