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,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 useLitTemplateinstead. Read more details from the Vaadin blog.- Since:
- 1.0.
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTemplate()Deprecated.protectedAbstractTemplate(StateNode stateNode)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected MgetModel()Deprecated.Returns the model of this template.protected Class<? extends M>getModelType()Deprecated.Gets the type of the template model to use with with this template.ModelTypegetModelType(Type type)Deprecated.Get theModelTypefor given class.protected StateNodegetStateNode()Deprecated.Gets the state node for current template.protected voidinitModel(Set<String> twoWayBindingPaths)Deprecated.booleanisSupportedClass(Class<?> type)Deprecated.Check if the given Classtypeis found in the Model.-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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
-
-
-
-
Constructor Detail
-
AbstractTemplate
protected AbstractTemplate()
Deprecated.
-
AbstractTemplate
protected AbstractTemplate(StateNode stateNode)
Deprecated.
-
-
Method Detail
-
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 Classtypeis 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 theModelTypefor given class.- Parameters:
type- Type to get the ModelType for- Returns:
- ModelType for given Type
-
-