Class HasHelperPostProcessor
- java.lang.Object
-
- de.codecamp.vaadin.flowdui.factories.HasHelperPostProcessor
-
- All Implemented Interfaces:
ComponentPostProcessor
public class HasHelperPostProcessor extends Object implements ComponentPostProcessor
-
-
Constructor Summary
Constructors Constructor Description HasHelperPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handleChildComponent(com.vaadin.flow.component.Component parentComponent, String slotName, org.jsoup.nodes.Element childElement, TemplateParserContext context)
Called to handle a child element of a component element in a template.void
postProcessComponent(com.vaadin.flow.component.Component component, org.jsoup.nodes.Element element, TemplateParserContext context, Set<String> consumedAttributes)
Apply this post processor to the given component.
-
-
-
Method Detail
-
postProcessComponent
public void postProcessComponent(com.vaadin.flow.component.Component component, org.jsoup.nodes.Element element, TemplateParserContext context, Set<String> consumedAttributes)
Description copied from interface:ComponentPostProcessor
Apply this post processor to the given component.- Specified by:
postProcessComponent
in interfaceComponentPostProcessor
- Parameters:
component
- the component to be post-processedelement
- the HTML element used to create the componentcontext
- 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
-
handleChildComponent
public boolean handleChildComponent(com.vaadin.flow.component.Component parentComponent, String slotName, org.jsoup.nodes.Element childElement, TemplateParserContext context)
Description copied from interface:ComponentPostProcessor
Called to handle a child element of a component element in a template. A child element is only handled once, so this method is not guaranteed to be called on all or any post processors.- Specified by:
handleChildComponent
in interfaceComponentPostProcessor
- Parameters:
parentComponent
- the parent componentslotName
- the name of the slot the element is intended for; may be nullchildElement
- the child elementcontext
- the parse context of the template- Returns:
- whether the child component has been handled; if
true
no furtherComponentPostProcessor
is considered
-
-