Interface MultiChooserWidget<T>
- All Superinterfaces:
ChooserWidget<T>
- Author:
- Per-Erik
-
Method Summary
Modifier and TypeMethodDescriptionvoidfindChosenValues(ChooserCallback<T> callback) Finds the currently chosen values, never null, possibly an empty list.voidsetPreselectedValues(Collection<T> preselected) Sets pre-selected values.Methods inherited from interface se.conciliate.extensions.ui.widgets.ChooserWidget
findChosenValue, getChooserComponent, reset, setCallback, setFilter, setPreselectedValue
-
Method Details
-
findChosenValues
Finds the currently chosen values, never null, possibly an empty list. Note that thread switching might occur but it is not mandatory. The callback's methods must however always be called on the event dispatch thread. This method is semantically equal toChooserWidget.findChosenValueexcept that it calls its callback with all selected values and not just the lead selection. This method is also allowed to call its callback with an empty list.- Parameters:
callback- the callback that gets invoked when all currently selected values have been fetched (if fetching is needed).- See Also:
-
setPreselectedValues
Sets pre-selected values.- Parameters:
preselected- a collection of values to be selected.
-