Interface DerivedSelectField<F extends DerivedSelectField<F>>

All Superinterfaces:
Comparable<F>, Component<F>, Copyable<F>, Field<F>, FormComponent<F>, SelectField<F>, Serializable
All Known Implementing Classes:
DefaultDerivedSelectField

public interface DerivedSelectField<F extends DerivedSelectField<F>> extends SelectField<F>
Represents the metadata for a FieldTypes.DERIVED_ENUM field component that is built as a derived version of a SelectField. This field is useful for managing a property whose selectable options are derived from the value of another property on the entity.
Author:
Nick Crum (ncrum)
  • Method Details

    • source

      default F source(String source)
      The source property to derive the options from. The source property is expected to be an array of object values with a label and value property.

      Note, if this is used in combination with SelectField.options(Collection), then the two option sets will be merged together.

      Parameters:
      source - the source property
      Returns:
      this