Interface AbstractSelectObjectDataBinding<V>
- Type Parameters:
V- Type of the selectable values
- All Superinterfaces:
AbstractDataBinding<V>
- All Known Implementing Classes:
AbstractAutoCompleteTextDataBinding,AbstractComboboxDataBinding,AutoCompleteTextDataBinding,ComboboxDataBinding,ContainerAutoCompleteTextDataBinding,ContainerComboboxDataBinding,EmfAutoCompleteTextDataBinding,EmfComboboxDataBinding
Extended data binding interface for selectable objects that adds filtering and sorting capabilities.
Builds upon
AbstractDataBinding to provide functionality for managing collections of selectable values.
Key additional features:
- Value filtering through predicates
- Custom sorting via comparators
- Bulk value population
- Author:
- Ionov Ivan
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetComparator(Comparator<V> comparator) Sets a comparator to define the sorting order of values.voidSets a filter predicate to determine which values should be included.voidSets the complete list of available values for selection.Methods inherited from interface com.amalgamasimulation.desktop.binding.widgets.AbstractDataBinding
createBinding, createControlDecoration, doAction, enable, executeToModel, executeToTarget, getValue, setControl
-
Method Details
-
setFilter
Sets a filter predicate to determine which values should be included.- Parameters:
filter- Predicate that returns true for values to include
-
setComparator
Sets a comparator to define the sorting order of values.- Parameters:
comparator- Comparator to use for sorting values
-
values
Sets the complete list of available values for selection.- Parameters:
values- List of all possible values
-