Class SilentCheckBoxSelectionModel<M>

<any><M>
net.datenwerke.rs.base.client.parameters.datasource.SilentCheckBoxSelectionModel<M>
Type Parameters:
M - the model type stored in the
invalid reference
ListStore

public class SilentCheckBoxSelectionModel<M> extends <any>
A
invalid reference
CheckBoxSelectionModel
that allows selecting items without firing events.

This implementation mirrors the behaviour of the original GXT selection methods in AbstractStoreSelectionModel.select(start, end, keepExisting) but calls the internal doSelect(...) method with suppressEvent = true.

It is intended for programmatic selection changes (e.g. restoring previously selected parameter values) where firing selection events would incorrectly trigger dependent parameter reloads or other UI logic that is meant to react only to real user interactions.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    selectSilently(int index, boolean keepExisting)
    Selects a single index without firing selection events.
    void
    selectSilently(int start, int end, boolean keepExisting)
    Selects a range of indices without firing selection events.
  • Constructor Details

    • SilentCheckBoxSelectionModel

      public SilentCheckBoxSelectionModel()
  • Method Details

    • selectSilently

      public void selectSilently(int index, boolean keepExisting)
      Selects a single index without firing selection events.

      The implementation is based on the original GXT AbstractStoreSelectionModel.select(start,end,keepExisting).

      Parameters:
      index - the index to select
      keepExisting - whether existing selections should be preserved
    • selectSilently

      public void selectSilently(int start, int end, boolean keepExisting)
      Selects a range of indices without firing selection events.

      The implementation is based on the original GXT AbstractStoreSelectionModel.select(start, end, keepExisting) method, but suppresses event firing by calling doSelect(..., suppressEvent = true).

      Parameters:
      start - the start index
      end - the end index
      keepExisting - whether existing selections should be preserved