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:
AttachNotifier, DetachNotifier, HasElement, HasStyle, DeprecatedPolymerTemplate, Serializable
Direct Known Subclasses:
PolymerTemplate

@Deprecated public abstract class AbstractTemplate<M extends TemplateModel> extends Component implements 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 Details

    • AbstractTemplate

      protected AbstractTemplate()
      Deprecated.
    • AbstractTemplate

      protected AbstractTemplate(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 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.