Class DynamicViewComponentIdProvider

java.lang.Object
io.jmix.dynmodelflowui.impl.DynamicViewComponentIdProvider

@Component("dynmod_DynamicViewComponentIdProvider") public class DynamicViewComponentIdProvider extends Object
Lists the components available in a dynamic view declaration, so the behavior handler editor can offer them instead of asking the user to type an id.

The components are read from up to three sources, unioned: the literal descriptor.source, the extended base view (for static entity extensions), and the rendered template (for dynamic entities). A template can only be rendered for an entity that exists in current metadata, so a dynamic entity that has never been applied contributes nothing — the editor combo accepts a typed value anyway.

Every id attribute in a source document is collected, except those in the parts of the view that hold no components: the data and facets sections and the actions declarations. A handler is attached by looking the id up in the view's component tree, so an id declared there could never be a target for any event.

This class does not consider trigger kinds. Narrowing the result to what a particular trigger can attach to is the editor's job, using ViewComponentTagCapabilities and the reported tag.