Class TemplateInitializer


  • @Deprecated
    public class TemplateInitializer
    extends Object
    Deprecated.
    Use LitTemplateInitializer for LitTemplate components. Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
    Template initialization related logic (parse template, create sub-templates, inject elements by id).

    For internal use only. May be renamed or removed in a future release.

    Since:
    1.0
    Author:
    Vaadin Ltd
    • Constructor Detail

      • TemplateInitializer

        public TemplateInitializer​(PolymerTemplate<?> template,
                                   TemplateParser parser,
                                   VaadinService service)
        Deprecated.
        Creates a new initializer instance.
        Parameters:
        template - a template to initialize
        parser - a template parser instance
        service - the related service
    • Method Detail

      • initChildElements

        public void initChildElements()
        Deprecated.
        Initializes child elements.
      • getTwoWayBindingPaths

        public Set<String> getTwoWayBindingPaths()
        Deprecated.
        Gets a set of two way binding paths encountered in the template.
        Returns:
        an unmodifiable collection of two way binding paths
      • getUsesClass

        public static Optional<Class<? extends Component>> getUsesClass​(Class<? extends PolymerTemplate<?>> templateType,
                                                                        String tagName)
        Deprecated.
        Looks for a component class with the given tag name among the classes used by the given polymer template class. Usage is determined based on the @Uses annotation.
        Parameters:
        templateType - the polymer template type
        tagName - the tag name to look for
        Returns:
        an optional component class, or an empty optional if the template doesn't use any component with the given tag name