Package com.onec.ui
Class UiLayoutResolver
java.lang.Object
com.onec.ui.UiLayoutResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve(UiLayout.Profile profile) resolveFieldHints(UiLayout.Profile profile, String entityType, String entityName) resolveFieldHints(UiLayout layout, String entityType, String entityName) Look up field hints for an entity declared in the layout.Resolve explicit widget configs (e.g.resolveWidgets(UiLayout layout) Resolve widget configs to dashboard descriptors.resolveWidgets(UiLayout.Profile profile)
-
Constructor Details
-
UiLayoutResolver
-
-
Method Details
-
resolveFieldHints
public Map<String,FieldHint> resolveFieldHints(UiLayout layout, String entityType, String entityName) Look up field hints for an entity declared in the layout.Returns an empty map if the entity is not referenced by any section or was added via the no-lambda overload. Multiple sections referencing the same entity are not expected; the first match wins.
-
resolveFieldHints
-
resolve
-
resolve
-
resolveWidgets
Resolve widget configs to dashboard descriptors. If the layout has explicit widgets, use those; otherwise fall back to annotation-based. -
resolveWidgets
-
resolveWidgetConfigs
public List<DashboardWidgetDescriptor> resolveWidgetConfigs(List<UiLayoutBuilder.WidgetConfig> widgets) Resolve explicit widget configs (e.g. composed by aPage) to descriptors. UnlikeresolveWidgets(com.onec.ui.UiLayout), an empty list yields an empty result — no annotation fallback — so a page renders exactly what it composes.
-