Interface SwingEntityComboBoxModel

All Superinterfaces:
ComboBoxModel<Entity>, EntityComboBoxModel, FilterComboBoxModel<Entity>, FilterModel<Entity>, ListModel<Entity>, SwingFilterComboBoxModel<Entity>

public interface SwingEntityComboBoxModel extends EntityComboBoxModel, SwingFilterComboBoxModel<Entity>

A Swing ComboBoxModel based on an Entity — the Swing coat over the UI-agnostic EntityComboBoxModel, adding the SwingFilterComboBoxModel interface (mirroring how SwingComboBoxModel relates to FilterComboBoxModel). All the entity logic (querying, filtering, persistence-awareness) lives in EntityComboBoxModel; this only adds the Swing surface and a Swing-typed builder.

To filter use EntityComboBoxModel.filter() to set a Predicate or configure ForeignKey based filtering.

See Also: