com.vaadin.client.connectors.

Class AbstractSelectionModelConnector.AbstractSelectionModel

  • java.lang.Object
    • com.vaadin.client.connectors.AbstractSelectionModelConnector.AbstractSelectionModel
    • Constructor Detail

      • AbstractSelectionModel

        public AbstractSelectionModel()
    • Method Detail

      • isSelected

        public boolean isSelected​(JsonObject row)

        Description copied from interface: SelectionModel

        Return true if the provided row is considered selected under the implementing selection model.

        Specified by:

        isSelected in interface SelectionModel<JsonObject>

        Parameters:

        row - row object instance

        Returns:

        true, if the row given as argument is considered selected.

      • setGrid

        public void setGrid​(Grid<JsonObject> grid)

        Description copied from interface: SelectionModel

        Tells this SelectionModel which Grid it belongs to.

        Implementations are free to have this be a no-op. This method is called internally by Grid.

        Specified by:

        setGrid in interface SelectionModel<JsonObject>

        Parameters:

        grid - a Grid instance; null when removing from Grid

      • reset

        public void reset()

        Description copied from interface: SelectionModel

        Resets the SelectionModel to the initial state.

        This method can be called internally, for example, when the attached Grid's data source changes.

        Specified by:

        reset in interface SelectionModel<JsonObject>