Class GridNoneSelectionModel<T>

    • Constructor Detail

      • GridNoneSelectionModel

        public GridNoneSelectionModel()
    • Method Detail

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