Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityComboBoxModel.Filter
- Enclosing interface:
EntityComboBoxModel
public static interface EntityComboBoxModel.Filter
Controls the filters for a
EntityComboBoxModel-
Method Summary
Modifier and TypeMethodDescriptionget(ForeignKey foreignKey) Returns a filter based on the given foreign key, applied to the items in memory.Controls the additional filter predicate, which is tested for items that pass all foreign key filters
-
Method Details
-
predicate
Controls the additional filter predicate, which is tested for items that pass all foreign key filters- Returns:
- the
Valuecontrolling the additional filter predicate
-
get
Returns a filter based on the given foreign key, applied to the items in memory.Linking a single-selection combo box model to a filter with multiple keys already set narrows the filter to the master's single selection. Pre-set filter keys are only synced into the master if it has already been refreshed; otherwise they are preserved until the master selection changes.
- Parameters:
foreignKey- the foreign key- Returns:
- a foreign key filter
- See Also:
-