Class TemplateInitializer
- java.lang.Object
-
- com.vaadin.flow.component.polymertemplate.TemplateInitializer
-
@Deprecated public class TemplateInitializer extends Object
Deprecated.UseLitTemplateInitializer
forLitTemplate
components. Polymer template support is deprecated - we recommend you to useLitTemplate
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 Summary
Constructors Constructor Description TemplateInitializer(PolymerTemplate<?> template, TemplateParser parser, VaadinService service)
Deprecated.Creates a new initializer instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<String>
getTwoWayBindingPaths()
Deprecated.Gets a set of two way binding paths encountered in the template.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.void
initChildElements()
Deprecated.Initializes child elements.
-
-
-
Constructor Detail
-
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 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 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
-
-