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:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.template.internal.DeprecatedPolymerTemplate, com.vaadin.flow.internal.Template, Serializable

@Deprecated public abstract class PolymerTemplate<M extends TemplateModel> extends AbstractTemplate<M> implements com.vaadin.flow.internal.Template
Deprecated.
Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
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

    Constructors
    Modifier
    Constructor
    Description
     
    Deprecated.
    Creates the component that is responsible for Polymer template functionality.
     
    Deprecated.
    Creates the component that is responsible for Polymer template functionality using the provided parser.
    protected
    PolymerTemplate(TemplateParser parser, com.vaadin.flow.server.VaadinService service)
    Deprecated.
    Creates the component that is responsible for Polymer template functionality using the provided parser.
  • Method Summary

    Modifier and Type
    Method
    Description
    Stream<com.vaadin.flow.component.Component>
    Deprecated.

    Methods inherited from class com.vaadin.flow.component.polymertemplate.AbstractTemplate

    getModel, getModelType, getModelType, getStateNode, initModel, isSupportedClass

    Methods 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, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • PolymerTemplate

      public PolymerTemplate(TemplateParser parser)
      Deprecated.
      Creates the component that is responsible for Polymer template functionality using the provided parser.
      Parameters:
      parser - a template parser
    • PolymerTemplate

      protected PolymerTemplate(TemplateParser parser, com.vaadin.flow.server.VaadinService service)
      Deprecated.
      Creates the component that is responsible for Polymer template functionality using the provided parser.
      Parameters:
      parser - a template parser
      service - the related service instance
    • PolymerTemplate

      public PolymerTemplate()
      Deprecated.
      Creates the component that is responsible for Polymer template functionality.
  • Method Details

    • getChildren

      public Stream<com.vaadin.flow.component.Component> getChildren()
      Deprecated.

      Please note that components defined using @Id are not child components since they are attached inside the Shadow DOM. Only components explicitly added through methods such as HasComponents.add(com.vaadin.flow.component.Component...) or Node.appendChild(Element...) are returned by this method.

      Overrides:
      getChildren in class com.vaadin.flow.component.Component