Class GridNoneSelectionModel<T>

java.lang.Object
io.jmix.groupgridflowui.kit.vaadin.grid.GridNoneSelectionModel<T>
Type Parameters:
T - the grid bean type
All Implemented Interfaces:
com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>, GridSelectionModel<T>, Serializable

public class GridNoneSelectionModel<T> extends Object implements GridSelectionModel<T>
Selection model implementation for disabling selection in Grid.
See Also:
  • Constructor Details

    • GridNoneSelectionModel

      public GridNoneSelectionModel()
  • Method Details

    • getSelectedItems

      public Set<T> getSelectedItems()
      Specified by:
      getSelectedItems in interface com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>
    • getFirstSelectedItem

      public Optional<T> getFirstSelectedItem()
      Specified by:
      getFirstSelectedItem in interface com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>
    • select

      public void select(T item)
      Specified by:
      select in interface com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>
    • deselect

      public void deselect(T item)
      Specified by:
      deselect in interface com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>
    • deselectAll

      public void deselectAll()
      Specified by:
      deselectAll in interface com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>
    • 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
    • addSelectionListener

      public com.vaadin.flow.shared.Registration addSelectionListener(com.vaadin.flow.data.selection.SelectionListener<Grid<T>,T> listener)
      Specified by:
      addSelectionListener in interface com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>