com.vaadin.flow.component.polymertemplate.
Class AbstractTemplate<M>
- 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:
Direct Known Subclasses:
public abstract class AbstractTemplate<M> extends Component
Since:
1.0.
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Modifier Constructor and Description protected
AbstractTemplate()
protected
AbstractTemplate(StateNode stateNode)
-
Method Summary
All Methods Modifier and Type Method and Description protected abstract M
getModel()
Returns the model of this template.
protected Class<? extends M>
getModelType()
Gets the type of the template model to use with with this template.
protected StateNode
getStateNode()
Gets the state node for current template.
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, 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()
-
AbstractTemplate
protected AbstractTemplate(StateNode stateNode)
-
-
Method Detail
-
getModel
protected abstract M getModel()
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()
Gets the type of the template model to use with with this template.
Returns:
the model type, not
null
-
getStateNode
protected StateNode getStateNode()
Gets the state node for current template.
Returns:
state node
-
-