Interface Dependent<D extends Dependent<D>>

    • Method Detail

      • dependentField

        default D dependentField​(String... dependentFieldsToAdd)
        Adds a dependency on the provided field name(s).

        Specifying a field as a dependency makes it available as a context parameter for the endpoint URL. Only fields targeted as a dependency can be referenced using the `${parent.}` syntax.

        Additionally, changes to dependencies will cause the refresh of the data for a dependent.

        Parameters:
        dependentFieldsToAdd - the fields to add
        Returns:
        the component
      • dependentFields

        default D dependentFields​(Collection<String> dependentFieldsToAdd)
        Adds a dependency on the provided field name(s).

        Specifying a field as a dependency makes it available as a context parameter for the endpoint URL. Only fields targeted as a dependency can be referenced using the `${parent.}` syntax.

        Additionally, changes to dependencies will cause the refresh of the data for a dependent.

        Parameters:
        dependentFieldsToAdd - the fields to add
        Returns:
        the component
      • clearDependentFields

        default D clearDependentFields()
        Clears any dependent fields.
        Returns:
        the component
      • parentIdField

        default D parentIdField​(String parentIdField)
        Define the property on the parent specifying it's unique identifier.

        This defaults to "id" in the client and is always included as a dependency.

        Parameters:
        parentIdField - the parent id field
        Returns:
        the component