public interface Dependent<D extends Dependent<D>> extends FormComponent<D>
FormComponent
that has dependencies on its parent form's state.
Generally, this is used by form components like GridExternal
or LookupField
in
order to indicate which of the parent's properties they need to retrieve data. Additionally, if a
dependent field is specified, it is expected the dependent component will refresh it's data upon
detecting a change in the dependency.
Modifier and Type | Interface and Description |
---|---|
static class |
Dependent.Attributes |
static class |
Dependent.DependentFieldsList
A copyable list of dependent field names.
|
Modifier and Type | Method and Description |
---|---|
default D |
clearDependentFields()
Clears any dependent fields.
|
default D |
dependentField(String... dependentFieldsToAdd)
Adds a dependency on the provided field name(s).
|
default D |
dependentFields(Collection<String> dependentFieldsToAdd)
Adds a dependency on the provided field name(s).
|
default D |
parentIdField(String parentIdField)
Define the property on the parent specifying it's unique identifier.
|
getHelpText, getHint, getTooltip, helpText, helpText, hidden, hidden, hint, hint, isHidden, notHidden, setHelpText, setHidden, setHint, setTooltip, tooltip, tooltip
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
compareTo
default D dependentField(String... dependentFieldsToAdd)
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.
Additionally, changes to dependencies will cause the refresh of the data for a dependent.
dependentFieldsToAdd
- the fields to adddefault D dependentFields(Collection<String> dependentFieldsToAdd)
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.
Additionally, changes to dependencies will cause the refresh of the data for a dependent.
dependentFieldsToAdd
- the fields to adddefault D clearDependentFields()
Copyright © 2021. All rights reserved.