You're viewing an older version of Framework JavaDoc. Please see version 8.28.0 for the latest.
com.vaadin.client.connectors.grid.

Class SingleSelectionModelConnector.SingleSelectionModel

  • java.lang.Object
    • com.vaadin.client.connectors.grid.SingleSelectionModelConnector.SingleSelectionModel
    • Constructor Detail

      • SingleSelectionModel

        protected SingleSelectionModel()
    • Method Detail

      • select

        public void select​(elemental.json.JsonObject item)

        Description copied from interface: SelectionModel

        Selects the given item. If another item was already selected, that item is deselected.

        Specified by:

        select in interface SelectionModel<elemental.json.JsonObject>

        Parameters:

        item - the item to select, not null

      • deselect

        public void deselect​(elemental.json.JsonObject item)

        Description copied from interface: SelectionModel

        Deselects the given item. If the item is not currently selected, does nothing.

        Specified by:

        deselect in interface SelectionModel<elemental.json.JsonObject>

        Parameters:

        item - the item to deselect, not null

      • isSelected

        public boolean isSelected​(elemental.json.JsonObject item)

        Description copied from interface: SelectionModel

        Returns whether the given item is currently selected.

        Specified by:

        isSelected in interface SelectionModel<elemental.json.JsonObject>

        Parameters:

        item - the item to check, not null

        Returns:

        true if the item is selected, false otherwise

      • deselectAll

        public void deselectAll()

        Description copied from interface: SelectionModel

        Deselects all currently selected items.

        Specified by:

        deselectAll in interface SelectionModel<elemental.json.JsonObject>

      • setSelectionAllowed

        public void setSelectionAllowed​(boolean selectionAllowed)

        Description copied from interface: SelectionModel

        Sets whether the user is allowed to change the selection.

        The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.

        Specified by:

        setSelectionAllowed in interface SelectionModel<elemental.json.JsonObject>

        Parameters:

        selectionAllowed - true if the user is allowed to change the selection, false otherwise

      • isSelectionAllowed

        public boolean isSelectionAllowed()

        Description copied from interface: SelectionModel

        Checks if the user is allowed to change the selection.

        The check is done only for the client side actions. It doesn't affect selection requests sent from the server side.

        Specified by:

        isSelectionAllowed in interface SelectionModel<elemental.json.JsonObject>

        Returns:

        true if the user is allowed to change the selection, false otherwise

      • isMultiSelectionAllowed

        public boolean isMultiSelectionAllowed()

        Description copied from interface: SelectionModel

        Checks if the user is allowed to have more than on item selected.

        Specified by:

        isMultiSelectionAllowed in interface SelectionModel<elemental.json.JsonObject>

        Returns:

        true if the user is allowed to select multiple items, false otherwise

      • setDeselectAllowed

        public 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

        public boolean isDeselectAllowed()

        Gets whether it's allowed to deselect the selected row through the UI.

        Returns:

        true if deselection is allowed; otherwise false