Package io.jmix.flowui.component.factory
Class LookupFieldSupport
java.lang.Object
io.jmix.flowui.component.factory.LookupFieldSupport
Resolves the effective
@LookupField configuration for an entity reference: annotation
precedence (field annotation, then the entity-field-actions property, then class
annotation) and the validations that do not depend on runtime context. The single source of truth
shared by EntityFieldCreationSupport and ComponentXmlFactory.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final recordprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UiComponentPropertiesprotected final MetadataToolsprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionLookupFieldSupport(MetadataTools metadataTools, UiComponentProperties componentProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected EffectiveLookupConfigdropdown(boolean fieldLevel, List<String> actions, EffectiveLookupConfig.ItemsMode mode, @Nullable String query, @Nullable String searchStringFormat, boolean escapeValueForLike, @Nullable String fetchPlanName) protected booleanisItemsQueryConfigured(@Nullable LookupFieldSupport.ItemsQuerySettings itemsQuery) protected @Nullable LookupFieldSupport.ItemsQuerySettingsreadItemsQuery(@Nullable Object raw) protected @Nullable LookupFieldSupport.LookupFieldSettingsreadSettings(Map<String, Object> annotations) resolve(MetaProperty referencingProperty, MetaClass referencedEntityClass) Resolves the effective configuration for a reference attribute.resolveActions(@Nullable LookupFieldSupport.LookupFieldSettings fieldSettings, @Nullable LookupFieldSupport.LookupFieldSettings classSettings, MetaClass referencedEntityClass) protected EffectiveLookupConfigresolveDropdown(@Nullable LookupFieldSupport.ItemsQuerySettings itemsQuery, MetaClass metaClass, boolean fieldLevel, List<String> actions)
-
Field Details
-
SEARCH_STRING_PARAMETER_REF
- See Also:
-
metadataTools
-
componentProperties
-
-
Constructor Details
-
LookupFieldSupport
-
-
Method Details
-
resolve
public EffectiveLookupConfig resolve(MetaProperty referencingProperty, MetaClass referencedEntityClass) Resolves the effective configuration for a reference attribute.- Parameters:
referencingProperty- the attribute that references an entityreferencedEntityClass- the referenced entity's metaClass
-
resolveDropdown
protected EffectiveLookupConfig resolveDropdown(@Nullable LookupFieldSupport.ItemsQuerySettings itemsQuery, MetaClass metaClass, boolean fieldLevel, List<String> actions) -
dropdown
protected EffectiveLookupConfig dropdown(boolean fieldLevel, List<String> actions, EffectiveLookupConfig.ItemsMode mode, @Nullable String query, @Nullable String searchStringFormat, boolean escapeValueForLike, @Nullable String fetchPlanName) -
resolveActions
protected List<String> resolveActions(@Nullable LookupFieldSupport.LookupFieldSettings fieldSettings, @Nullable LookupFieldSupport.LookupFieldSettings classSettings, MetaClass referencedEntityClass) -
isItemsQueryConfigured
protected boolean isItemsQueryConfigured(@Nullable LookupFieldSupport.ItemsQuerySettings itemsQuery) -
readSettings
protected @Nullable LookupFieldSupport.LookupFieldSettings readSettings(Map<String, Object> annotations) -
readItemsQuery
-