Class MultiSelectionModelConnector

    • Constructor Detail

      • MultiSelectionModelConnector

        public MultiSelectionModelConnector()
    • Method Detail

      • createSelectionModel

        protected MultiSelectionModelConnector.MultiSelectionModel createSelectionModel()
        Creates an instance of MultiSelectionModel. Method provided overriding features of the selection model without copying all logic.
        Returns:
        selection model instance, not null
        Since:
        8.1
      • updateSelectAllCheckBox

        protected void updateSelectAllCheckBox()
        Called whenever there has been a state update for select all checkbox visibility or all have been selected or deselected.
      • isAllSelected

        protected boolean isAllSelected()
        Returns whether all items are selected or not.
        Returns:
        true if all items are selected, false if not
      • onSelectAllEvent

        protected void onSelectAllEvent​(SelectAllEvent<elemental.json.JsonObject> event)
        Handler for selecting / deselecting all grid rows.
        Parameters:
        event - the select all event from grid
      • updateAllRowsSelected

        protected void updateAllRowsSelected​(boolean selected)
        Update selection for all grid rows.
        Parameters:
        selected - true for marking all rows selected, false for not selected
      • updateRowSelected

        protected void updateRowSelected​(DataSource.RowHandle<elemental.json.JsonObject> row,
                                         boolean selected)
        Marks the given row to be selected or deselected. Returns true if the value actually changed.

        Note: If selection model is in batch select state, the row will be pinned on select.

        Parameters:
        row - row handle
        selected - true if row should be selected; false if not