Class TemplateInitializer
java.lang.Object
com.vaadin.flow.component.polymertemplate.TemplateInitializer
Deprecated.
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 Summary
ConstructorsConstructorDescriptionTemplateInitializer(PolymerTemplate<?> template, TemplateParser parser, VaadinService service) Deprecated.Creates a new initializer instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets a set of two way binding paths encountered in the template.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.voidDeprecated.Initializes child elements.
-
Constructor Details
-
TemplateInitializer
public TemplateInitializer(PolymerTemplate<?> template, TemplateParser parser, VaadinService service) Deprecated.Creates a new initializer instance.- Parameters:
template- a template to initializeparser- a template parser instanceservice- the related service
-
-
Method Details
-
initChildElements
public void initChildElements()Deprecated.Initializes child elements. -
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@Usesannotation.- Parameters:
templateType- the polymer template typetagName- 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
-
LitTemplateInitializerforLitTemplatecomponents. Polymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.