Class AbstractSelectionModelConnector.AbstractSelectionModel

    • Constructor Detail

      • AbstractSelectionModel

        public AbstractSelectionModel()
    • Method Detail

      • isSelected

        public boolean isSelected​(elemental.json.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<elemental.json.JsonObject>
        Parameters:
        row - row object instance
        Returns:
        true, if the row given as argument is considered selected.
      • setGrid

        public void setGrid​(Grid<elemental.json.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<elemental.json.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<elemental.json.JsonObject>
      • getSelectedRows

        public Collection<elemental.json.JsonObject> getSelectedRows()
        Description copied from interface: SelectionModel
        Returns a Collection containing all selected rows.
        Specified by:
        getSelectedRows in interface SelectionModel<elemental.json.JsonObject>
        Returns:
        a non-null collection.