Interface EntityComboBoxModel.Filter

Enclosing interface:
EntityComboBoxModel

public static interface EntityComboBoxModel.Filter
Controls the filters for a EntityComboBoxModel
  • Method Summary

    Modifier and Type
    Method
    Description
    get(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

      Value<Predicate<Entity>> predicate()
      Controls the additional filter predicate, which is tested for items that pass all foreign key filters
      Returns:
      the Value controlling the additional filter predicate
    • get

      ForeignKeyFilter get(ForeignKey foreignKey)
      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: