Interface EntityComponentFactory<T,C extends JComponent>

Type Parameters:
T - the value type
C - the component type
All Known Implementing Classes:
DefaultEntityComponentFactory

public interface EntityComponentFactory<T,C extends JComponent>
A factory for ComponentValue instances.
  • Method Details

    • componentValue

      ComponentValue<T,C> componentValue(SwingEntityEditModel editModel, T value)
      Provides an input ComponentValue for editing a single attribute value for one or more entities.
      Parameters:
      editModel - the edit model used to create foreign key input models
      value - the initial value to display
      Returns:
      a new ComponentValue instance handling input for attribute
    • caption

      default Optional<String> caption()
      Provides a way to override the default attribute caption, when presenting the component to the user.
      Returns:
      a caption to use when displaying the component