Class SilentCheckBoxSelectionModel<M>
- Type Parameters:
M- the model type stored in theinvalid reference
ListStore
invalid reference
CheckBoxSelectionModel
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidselectSilently(int index, boolean keepExisting) Selects a single index without firing selection events.voidselectSilently(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 selectkeepExisting- 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 callingdoSelect(..., suppressEvent = true).- Parameters:
start- the start indexend- the end indexkeepExisting- whether existing selections should be preserved
-