M
- a model class that will be used for template data propagationpublic abstract class AbstractTemplate<M> extends Component
Modifier | Constructor and Description |
---|---|
protected |
AbstractTemplate() |
protected |
AbstractTemplate(StateNode stateNode) |
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.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, 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 abstract 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()
Copyright © 2018. All rights reserved.