Interface GridSingleSelectionModel<T>

Type Parameters:
T - the type of items in grid
All Superinterfaces:
GridSelectionModel<T>, com.vaadin.flow.data.selection.SelectionModel<Grid<T>,T>, com.vaadin.flow.data.selection.SelectionModel.Single<Grid<T>,T>, Serializable
All Known Implementing Classes:
AbstractGridSingleSelectionModel

public interface GridSingleSelectionModel<T> extends GridSelectionModel<T>, com.vaadin.flow.data.selection.SelectionModel.Single<Grid<T>,T>
Single selection model interface for Grid.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.data.selection.SelectionModel

    com.vaadin.flow.data.selection.SelectionModel.Multi<C extends com.vaadin.flow.component.Component,T extends Object>, com.vaadin.flow.data.selection.SelectionModel.Single<C extends com.vaadin.flow.component.Component,T extends Object>
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.shared.Registration
    addSingleSelectionListener(com.vaadin.flow.data.selection.SingleSelectionListener<Grid<T>,T> listener)
    Adds a selection listener that will be called when the selection is changed either by the user or programmatically.
    com.vaadin.flow.data.selection.SingleSelect<Grid<T>,T>
    Gets a wrapper to use this single selection model as a single select in Binder.

    Methods inherited from interface io.jmix.groupgridflowui.kit.vaadin.grid.GridSelectionModel

    deselectFromClient, selectFromClient

    Methods inherited from interface com.vaadin.flow.data.selection.SelectionModel

    addSelectionListener, deselect, isSelected

    Methods inherited from interface com.vaadin.flow.data.selection.SelectionModel.Single

    deselectAll, getFirstSelectedItem, getSelectedItem, getSelectedItems, isDeselectAllowed, select, setDeselectAllowed, setSelectedItem
  • Method Details

    • asSingleSelect

      com.vaadin.flow.data.selection.SingleSelect<Grid<T>,T> asSingleSelect()
      Gets a wrapper to use this single selection model as a single select in Binder.
      Returns:
      the single select wrapper
    • addSingleSelectionListener

      com.vaadin.flow.shared.Registration addSingleSelectionListener(com.vaadin.flow.data.selection.SingleSelectionListener<Grid<T>,T> listener)
      Adds a selection listener that will be called when the selection is changed either by the user or programmatically.
      Parameters:
      listener - the single selection listener, not null
      Returns:
      a registration for the listener