com.vaadin.client.widget.grid.selection.

Class SpaceSelectHandler<T>

  • java.lang.Object
    • com.vaadin.client.widget.grid.selection.SpaceSelectHandler<T>
  • Type Parameters:

    T - row data type

    public class SpaceSelectHandler<T>
    extends Object

    Generic class to perform selections when pressing space key.

    Since:

    7.4

    Author:

    Vaadin Ltd

    • Constructor Detail

      • SpaceSelectHandler

        public SpaceSelectHandler​(Grid<T> grid)

        Constructor for SpaceSelectHandler. This constructor will add all necessary handlers for selecting rows with space.

        Parameters:

        grid - grid to attach to

    • Method Detail

      • removeHandler

        public void removeHandler()

        Clean up function for removing all now obsolete handlers.

      • setDeselectAllowed

        public void setDeselectAllowed​(boolean deselectAllowed)

        Sets whether pressing space for the currently selected row should deselect the row.

        Parameters:

        deselectAllowed - true to allow deselecting the selected row; otherwise false