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 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.

    • Constructor Detail

      • NoSelectionModel

        public NoSelectionModel()
    • 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 interface SelectionModel<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 interface SelectionModel<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 interface SelectionModel<T>

        Parameters:

        item - the item to check, not null

        Returns:

        true if the item is selected, false otherwise

      • 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 interface SelectionModel<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 interface SelectionModel<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 interface SelectionModel<T>

        Returns:

        true if the user is allowed to select multiple items, false otherwise