Class IconFactory

    • Constructor Detail

      • IconFactory

        public IconFactory()
    • Method Detail

      • createComponent

        public com.vaadin.flow.component.Component createComponent​(org.jsoup.nodes.Element element,
                                                                   TemplateParserContext context,
                                                                   Set<String> consumedAttributes)
        Description copied from interface: ComponentFactory
        Creates a component based on the given element, if the element is supported by this factory.
        Specified by:
        createComponent in interface ComponentFactory
        Parameters:
        element - the HTML element
        context - the parse context of the template
        consumedAttributes - the set of attributes of the element that have so far been consumed to configure the component; i.e. this method must add all attributes it understands and reads to the set; methods provided by the TemplateParserContext will automatically do that
        Returns:
        the created component or null if the given element is not recognized