Interface SelectionModel.Single<T>

    • Method Detail

      • select

        boolean select​(T row)
        Selects a row.
        Parameters:
        row - a Grid row object
        Returns:
        true, if this row as not previously selected.
      • deselect

        boolean deselect​(T row)
        Deselects a row.

        This is a no-op unless row is the currently selected row.

        Parameters:
        row - a Grid row object
        Returns:
        true, if the currently selected row was deselected.
      • getSelectedRow

        T getSelectedRow()
        Returns the currently selected row.
        Returns:
        a Grid row object or null, if nothing is selected.
      • setDeselectAllowed

        void setDeselectAllowed​(boolean deselectAllowed)
        Sets whether it's allowed to deselect the selected row through the UI. Deselection is allowed by default.
        Parameters:
        deselectAllowed - true if the selected row can be deselected without selecting another row instead; otherwise false.
      • isDeselectAllowed

        boolean isDeselectAllowed()
        Sets whether it's allowed to deselect the selected row through the UI.
        Returns:
        true if deselection is allowed; otherwise false