com.vaadin.flow.component.grid.

Class GridNoneSelectionModel<T>

    • Constructor Detail

      • GridNoneSelectionModel

        public GridNoneSelectionModel()
    • Method Detail

      • getSelectedItems

        public Set<T> getSelectedItems()

        Description copied from interface: SelectionModel

        Returns an immutable set of the currently selected items. It is safe to invoke other SelectionModel methods while iterating over the set.

        Implementation note: the iteration order of the items in the returned set should be well-defined and documented by the implementing class.

        Specified by:

        getSelectedItems in interface SelectionModel<Grid<T>,T>

        Returns:

        the items in the current selection, not null

      • select

        public void select(T item)

        Description copied from interface: SelectionModel

        Selects the given item. Depending on the implementation, may cause other items to be deselected. If the item is already selected, does nothing.

        Specified by:

        select in interface SelectionModel<Grid<T>,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<Grid<T>,T>

        Parameters:

        item - the item to deselect, not null

      • selectFromClient

        public void selectFromClient(T item)

        Description copied from interface: GridSelectionModel

        Handles the selection of an item that originates from the client.

        Specified by:

        selectFromClient in interface GridSelectionModel<T>

        Parameters:

        item - the item being selected

      • deselectFromClient

        public void deselectFromClient(T item)

        Description copied from interface: GridSelectionModel

        Handles the deselection of an item that originates from the client.

        Specified by:

        deselectFromClient in interface GridSelectionModel<T>

        Parameters:

        item - the item being deselected