com.vaadin.flow.component.polymertemplate.
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 propagationAll Implemented Interfaces:
AttachNotifier
,DetachNotifier
,HasElement
,DeprecatedPolymerTemplate
,Serializable
Direct Known Subclasses:
@Deprecated public abstract class AbstractTemplate<M extends TemplateModel> extends Component implements DeprecatedPolymerTemplate
Deprecated.Polymer template support is deprecated - we recommend you to useLitTemplate
instead. Read more details from the Vaadin blog.Since:
1.0.
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTemplate()
Deprecated.
protected
AbstractTemplate(StateNode stateNode)
Deprecated.
-
Method Summary
All Methods Modifier and Type Method Description protected M
getModel()
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.
ModelType
getModelType(Type type)
Deprecated.
Get the
ModelType
for given class.protected StateNode
getStateNode()
Deprecated.
Gets the state node for current template.
protected void
initModel(Set<String> twoWayBindingPaths)
Deprecated.
boolean
isSupportedClass(Class<?> type)
Deprecated.
Check if the given Class
type
is 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, 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
-
-
-
-
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 Class
type
is found in the Model.Parameters:
type
- Class to check support forReturns:
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 forReturns:
ModelType for given Type
-
-