Class AbstractTemplate<M extends TemplateModel>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.polymertemplate.AbstractTemplate<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, Serializable
Direct Known Subclasses:
PolymerTemplate

@Deprecated public abstract class AbstractTemplate<M extends TemplateModel> extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.template.internal.DeprecatedPolymerTemplate
Deprecated.
Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
Since:
1.0.
Author:
Vaadin Ltd
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated.
     
    protected
    AbstractTemplate(com.vaadin.flow.internal.StateNode stateNode)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected M
    Deprecated.
    Returns the model of this template.
    protected Class<? extends M>
    Deprecated.
    Gets the type of the template model to use with with this template.
    Deprecated.
    Get the ModelType for given class.
    protected com.vaadin.flow.internal.StateNode
    Deprecated.
    Gets the state node for current template.
    protected void
    initModel(Set<String> twoWayBindingPaths)
    Deprecated.
     
    boolean
    Deprecated.
    Check if the given Class type is found in the Model.

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, 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

    • AbstractTemplate

      protected AbstractTemplate()
      Deprecated.
    • AbstractTemplate

      protected AbstractTemplate(com.vaadin.flow.internal.StateNode stateNode)
      Deprecated.
  • Method Details

    • getModel

      protected M getModel()
      Deprecated.
      Returns the model of this template.

      The type of the model will be the type that this method returns in the instance it is invoked on - meaning that you should override this method and return your own model type.

      Returns:
      the model of this template
    • getModelType

      protected Class<? extends M> getModelType()
      Deprecated.
      Gets the type of the template model to use with with this template.
      Returns:
      the model type, not null
    • getStateNode

      protected com.vaadin.flow.internal.StateNode getStateNode()
      Deprecated.
      Gets the state node for current template.
      Returns:
      state node
    • isSupportedClass

      public boolean isSupportedClass(Class<?> type)
      Deprecated.
      Check if the given Class type is found in the Model.
      Parameters:
      type - Class to check support for
      Returns:
      True if supported by this PolymerTemplate
    • getModelType

      public ModelType getModelType(Type type)
      Deprecated.
      Get the ModelType for given class.
      Parameters:
      type - Type to get the ModelType for
      Returns:
      ModelType for given Type
    • initModel

      protected void initModel(Set<String> twoWayBindingPaths)
      Deprecated.