Class PolymerTemplate<M extends TemplateModel>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.polymertemplate.AbstractTemplate<M>
com.vaadin.flow.component.polymertemplate.PolymerTemplate<M>
- Type Parameters:
M- a model class that will be used for template data propagation
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasStyle,DeprecatedPolymerTemplate,Template,Serializable
@Deprecated
public abstract class PolymerTemplate<M extends TemplateModel>
extends AbstractTemplate<M>
implements Template
Deprecated.
Component for an HTML element declared as a polymer component. The HTML
markup should be loaded using the
JsModule annotation and the
components should be associated with the web component element using the
@Tag annotation.
You may use Id annotation inside your template class for a field to
reference an element inside your template via id attribute value. Note
that the injected element will have functional limitations on the server
side.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.Creates the component that is responsible for Polymer template functionality.PolymerTemplate(TemplateParser parser) Deprecated.Creates the component that is responsible for Polymer template functionality using the providedparser.protectedPolymerTemplate(TemplateParser parser, VaadinService service) Deprecated.Creates the component that is responsible for Polymer template functionality using the providedparser. -
Method Summary
Methods inherited from class com.vaadin.flow.component.polymertemplate.AbstractTemplate
getModel, getModelType, getModelType, getStateNode, initModel, isSupportedClassMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
PolymerTemplate
Deprecated.Creates the component that is responsible for Polymer template functionality using the providedparser.- Parameters:
parser- a template parser
-
PolymerTemplate
Deprecated.Creates the component that is responsible for Polymer template functionality using the providedparser.- Parameters:
parser- a template parserservice- the related service instance
-
PolymerTemplate
public PolymerTemplate()Deprecated.Creates the component that is responsible for Polymer template functionality.
-
-
Method Details
-
getChildren
Deprecated.Please note that components defined using
@Idare not child components since they are attached inside the Shadow DOM. Only components explicitly added through methods such asHasComponents.add(com.vaadin.flow.component.Component...)orNode.appendChild(Element...)are returned by this method.- Overrides:
getChildrenin classComponent
-
LitTemplateinstead. Read more details from the Vaadin blog.