Class IconFactory
- java.lang.Object
-
- de.codecamp.vaadin.flowdui.factories.visandint.IconFactory
-
- All Implemented Interfaces:
ComponentFactory
public class IconFactory extends Object implements ComponentFactory
-
-
Constructor Summary
Constructors Constructor Description IconFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.Component
createComponent(org.jsoup.nodes.Element element, TemplateParserContext context, Set<String> consumedAttributes)
Creates a component based on the given element, if the element is supported by this factory.
-
-
-
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 interfaceComponentFactory
- Parameters:
element
- the HTML elementcontext
- the parse context of the templateconsumedAttributes
- 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 theTemplateParserContext
will automatically do that- Returns:
- the created component or null if the given element is not recognized
-
-