You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.polymertemplate.

Class AbstractTemplate<M extends TemplateModel>

    • Constructor Detail

      • AbstractTemplate

        protected AbstractTemplate()
        Deprecated.
      • AbstractTemplate

        protected AbstractTemplate​(StateNode stateNode)
        Deprecated.
    • Method Detail

      • getModel

        protected M 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

        protected Class<? extends M> getModelType()
        Deprecated.

        Gets the type of the template model to use with with this template.

        Returns:

        the model type, not null

      • getStateNode

        protected StateNode getStateNode()
        Deprecated.

        Gets the state node for current template.

        Returns:

        state node

      • isSupportedClass

        public boolean isSupportedClass​(Class<?> type)
        Deprecated.

        Check if the given Class type is found in the Model.

        Parameters:

        type - Class to check support for

        Returns:

        True if supported by this PolymerTemplate

      • getModelType

        public ModelType getModelType​(Type type)
        Deprecated.

        Get the ModelType for given class.

        Parameters:

        type - Type to get the ModelType for

        Returns:

        ModelType for given Type

      • initModel

        protected void initModel​(Set<String> twoWayBindingPaths)
        Deprecated.