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.
- Since:
- 1.0.
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.protectedAbstractTemplate(StateNode stateNode) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected MgetModel()Deprecated.Returns the model of this template.Deprecated.Gets the type of the template model to use with with this template.getModelType(Type type) Deprecated.Get theModelTypefor given class.protected StateNodeDeprecated.Gets the state node for current template.protected voidDeprecated.booleanisSupportedClass(Class<?> type) Deprecated.Check if the given Classtypeis 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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
Deprecated.
-
-
Method Details
-
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
Deprecated.Gets the type of the template model to use with with this template.- Returns:
- the model type, not
null
-
getStateNode
Deprecated.Gets the state node for current template.- Returns:
- state node
-
isSupportedClass
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
Deprecated.Get theModelTypefor given class.- Parameters:
type- Type to get the ModelType for- Returns:
- ModelType for given Type
-
initModel
Deprecated.
-
LitTemplateinstead. Read more details from the Vaadin blog.