Interface EntityComboBoxModel.ForeignKeyFilter

Enclosing interface:
EntityComboBoxModel

public static interface EntityComboBoxModel.ForeignKeyFilter
Controls a foreign key filter for a EntityComboBoxModel
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears and disables this foreign key filter
    get()
     
    void
    Links the given combo box model representing foreign key entities to this combo box model so that selection in the foreign key model filters this model.
    void
    Filters the combo box model so that only items referencing the given key are included.
    void
    Filters the combo box model so that only items referencing the given keys are included.
    Controls whether foreign key filtering should be strict or not.
  • Method Details

    • set

      void set(Entity.Key key)
      Filters the combo box model so that only items referencing the given key are included.
      Parameters:
      key - the key to filter by
    • set

      void set(Collection<Entity.Key> keys)
      Filters the combo box model so that only items referencing the given keys are included. If keys is empty and strict() filtering is enabled, all entities are filtered.
      Parameters:
      keys - the keys to filter by
    • get

      Returns:
      the current filter keys
    • clear

      void clear()
      Clears and disables this foreign key filter
    • strict

      State strict()
      Controls whether foreign key filtering should be strict or not. A strict foreign key filter filters all entities if no filter keys are specified and filters individual entities if the reference key is null.
      Returns:
      the State controlling whether foreign key filtering should be strict
      See Also:
    • link

      void link(EntityComboBoxModel filterModel)
      Links the given combo box model representing foreign key entities to this combo box model so that selection in the foreign key model filters this model. Note that filterModel is automatically refreshed each time this combo box model is refreshed.
      Parameters:
      filterModel - the combo box model filtering this model