com.vaadin.flow.component.polymertemplate.

Class AbstractTemplate<M>

    • 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