M
- a model class that will be used for template data propagationLitTemplate
instead. Read more details from the
Vaadin blog.@Deprecated public abstract class AbstractTemplate<M extends TemplateModel> extends Component implements DeprecatedPolymerTemplate
Modifier | Constructor and Description |
---|---|
protected |
AbstractTemplate()
Deprecated.
|
protected |
AbstractTemplate(StateNode stateNode)
Deprecated.
|
Modifier and Type | Method and 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. |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttachListener
addDetachListener
protected AbstractTemplate()
protected AbstractTemplate(StateNode stateNode)
protected M getModel()
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.
protected Class<? extends M> getModelType()
null
protected StateNode getStateNode()
public boolean isSupportedClass(Class<?> type)
type
is found in the Model.type
- Class to check support forpublic ModelType getModelType(Type type)
ModelType
for given class.type
- Type to get the ModelType forCopyright © 2022. All rights reserved.