com.vaadin.ui.declarative.

Class Design.DefaultComponentFactory

    • Constructor Detail

      • DefaultComponentFactory

        public DefaultComponentFactory()
    • Method Detail

      • createComponent

        public Component createComponent​(String fullyQualifiedClassName,
                                         DesignContext context)

        Description copied from interface: Design.ComponentFactory

        Creates a component based on the fully qualified name derived from the tag name in the design.

        Specified by:

        createComponent in interface Design.ComponentFactory

        Parameters:

        fullyQualifiedClassName - the fully qualified name of the component to create

        context - the design context for which the component is created

        Returns:

        a newly created component

      • resolveComponentClass

        protected Class<? extends Component> resolveComponentClass​(String qualifiedClassName,
                                                                   DesignContext context)

        Resolves a component class based on the fully qualified name of the class.

        Parameters:

        qualifiedClassName - the fully qualified name of the resolved class

        context - the design context for which the class is resolved

        Returns:

        a component class object representing the provided class name