com.vaadin.flow.component.polymertemplate.

Class InjectablePolymerElementInitializer

  • All Implemented Interfaces:

    Consumer<Map<String,String>>

    Deprecated. 

    InjectableLitElementInitializer should be used for Lit templates since polymer support is deprecated, we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.


    @Deprecated
    public class InjectablePolymerElementInitializer
    extends AbstractInjectableElementInitializer

    Initialize a polymer template element with data.

    For internal use only. May be renamed or removed in a future release.

    Since:

    Author:

    Vaadin Ltd

    • Constructor Detail

      • InjectablePolymerElementInitializer

        public InjectablePolymerElementInitializer(Element element,
                                                   Class<? extends Component> templateClass)

        Deprecated. 

        Creates an initializer for the element.

        Parameters:

        element - element to initialize

        templateClass - the class of the template component

    • Method Detail

      • isStaticAttribute

        protected boolean isStaticAttribute(String name,
                                            String value)

        Deprecated. 

        Description copied from class: AbstractInjectableElementInitializer

        Checks whether the attribute declaration is an attribute with a static value ( so it can be set on the serve side).

        Specified by:

        isStaticAttribute in class AbstractInjectableElementInitializer

        Parameters:

        name - the template attribute name

        value - the template attribute value

        Returns:

        whether the attribute declaration is an attribute with a static value