Interface GridMultiSelectionModel<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.Multi<Grid<T>,​T>, Serializable
    All Known Implementing Classes:
    AbstractGridMultiSelectionModel

    public interface GridMultiSelectionModel<T>
    extends GridSelectionModel<T>, com.vaadin.flow.data.selection.SelectionModel.Multi<Grid<T>,​T>
    Multiselection model interface for Grid.
    Author:
    Vaadin Ltd
    • Method Detail

      • asMultiSelect

        com.vaadin.flow.data.selection.MultiSelect<Grid<T>,​T> asMultiSelect()
        Gets a wrapper to use this multiselection model as a multiselect in Binder.
        Returns:
        the multiselect wrapper
      • addMultiSelectionListener

        com.vaadin.flow.shared.Registration addMultiSelectionListener​(com.vaadin.flow.data.selection.MultiSelectionListener<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 multi selection listener, not null
        Returns:
        a registration for the listener
      • setSelectionColumnFrozen

        void setSelectionColumnFrozen​(boolean frozen)
        Sets the selection column's frozen state.
        Parameters:
        frozen - whether to freeze or unfreeze the selection column
      • isSelectionColumnFrozen

        boolean isSelectionColumnFrozen()
        Gets the the selection column's frozen state.
        Returns:
        whether the selection column is frozen
      • setDragSelect

        void setDragSelect​(boolean dragSelect)
        If true, grid rows can be selected or deselected by dragging the mouse cursor over grid's selection column.
        Parameters:
        dragSelect - true to enable drag select feature, false for disabling it
      • isDragSelect

        boolean isDragSelect()
        Gets whether grid drag select is enabled or not.
        Returns:
        true if drag select feature is enabled, false otherwise