com.vaadin.client.widget.grid.selection.
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 selectAll Implemented Interfaces:
Enclosing interface:
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 Modifier and Type Method 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.
-
-
-
Method Detail
-
select
public void select(T item)
Description copied from interface:
SelectionModel
Selects the given item. If another item was already selected, that item is deselected.
Specified by:
select
in interfaceSelectionModel<T>
Parameters:
item
- the item to select, not null
-
deselect
public void deselect(T item)
Description copied from interface:
SelectionModel
Deselects the given item. If the item is not currently selected, does nothing.
Specified by:
deselect
in interfaceSelectionModel<T>
Parameters:
item
- the item to deselect, not null
-
isSelected
public boolean isSelected(T item)
Description copied from interface:
SelectionModel
Returns whether the given item is currently selected.
Specified by:
isSelected
in interfaceSelectionModel<T>
Parameters:
item
- the item to check, not nullReturns:
true
if the item is selected,false
otherwise
-
deselectAll
public void deselectAll()
Description copied from interface:
SelectionModel
Deselects all currently selected items.
Specified by:
deselectAll
in interfaceSelectionModel<T>
-
setSelectionAllowed
public void setSelectionAllowed(boolean selectionAllowed)
Description copied from interface:
SelectionModel
Sets 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:
setSelectionAllowed
in interfaceSelectionModel<T>
Parameters:
selectionAllowed
-true
if the user is allowed to change the selection,false
otherwise
-
isSelectionAllowed
public boolean isSelectionAllowed()
Description copied from interface:
SelectionModel
Checks 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:
isSelectionAllowed
in interfaceSelectionModel<T>
Returns:
true
if the user is allowed to change the selection,false
otherwise
-
isMultiSelectionAllowed
public boolean isMultiSelectionAllowed()
Description copied from interface:
SelectionModel
Checks if the user is allowed to have more than on item selected.
Specified by:
isMultiSelectionAllowed
in interfaceSelectionModel<T>
Returns:
true
if the user is allowed to select multiple items,false
otherwise
-
-