Package com.vaadin.featurepack.ui
Class FGrid.NoSelectionModel
java.lang.Object
com.vaadin.featurepack.ui.FGrid.AbstractSelectionModel
com.vaadin.featurepack.ui.FGrid.NoSelectionModel
- All Implemented Interfaces:
FGrid.SelectionModel,FGrid.SelectionModel.None,Serializable
- Enclosing class:
FGrid
public static class FGrid.NoSelectionModel
extends FGrid.AbstractSelectionModel
implements FGrid.SelectionModel.None
A default implementation for a
FGrid.SelectionModel.None- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.featurepack.ui.FGrid.SelectionModel
FGrid.SelectionModel.HasUserSelectionAllowed, FGrid.SelectionModel.Multi, FGrid.SelectionModel.None, FGrid.SelectionModel.Single -
Field Summary
Fields inherited from class com.vaadin.featurepack.ui.FGrid.AbstractSelectionModel
parentGrid, selection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of all the currently selected itemIds.booleanisSelected(Object itemId) Checks whether an item is selected or not.voidreset()Semantically resets the selection model.Methods inherited from class com.vaadin.featurepack.ui.FGrid.AbstractSelectionModel
checkItemIdExists, checkItemIdsExist, fireSelectionEvent, getParentGrid, setGridMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.featurepack.ui.FGrid.SelectionModel
setGrid
-
Constructor Details
-
NoSelectionModel
public NoSelectionModel()
-
-
Method Details
-
isSelected
Description copied from interface:FGrid.SelectionModelChecks whether an item is selected or not.- Specified by:
isSelectedin interfaceFGrid.SelectionModel- Specified by:
isSelectedin interfaceFGrid.SelectionModel.None- Overrides:
isSelectedin classFGrid.AbstractSelectionModel- Parameters:
itemId- the item id to check for- Returns:
trueiff the item is selected
-
getSelectedRows
Description copied from interface:FGrid.SelectionModelReturns a collection of all the currently selected itemIds.- Specified by:
getSelectedRowsin interfaceFGrid.SelectionModel- Specified by:
getSelectedRowsin interfaceFGrid.SelectionModel.None- Overrides:
getSelectedRowsin classFGrid.AbstractSelectionModel- Returns:
- a collection of all the currently selected itemIds
-
reset
public void reset()Semantically resets the selection model.Effectively a no-op.
- Specified by:
resetin interfaceFGrid.SelectionModel
-