Package htmlflow.continuations
Class HtmlContinuationSyncDynamic<E extends org.xmlet.htmlapifaster.Element,T>
java.lang.Object
htmlflow.continuations.HtmlContinuation
htmlflow.continuations.HtmlContinuationSync
htmlflow.continuations.HtmlContinuationSyncDynamic<E,T>
- Type Parameters:
E- the type of the parent HTML element received by the dynamic HTML block.T- the type of the template's model.
public class HtmlContinuationSyncDynamic<E extends org.xmlet.htmlapifaster.Element,T>
extends HtmlContinuationSync
HtmlContinuation for a dynamic block (i.e. BiConsumer) depending of an object model.
-
Field Summary
Fields inherited from class htmlflow.continuations.HtmlContinuation
next -
Constructor Summary
ConstructorsConstructorDescriptionHtmlContinuationSyncDynamic(int currentDepth, boolean isClosed, E element, BiConsumer<E, T> consumer, HtmlVisitor visitor, HtmlContinuation next) -
Method Summary
Modifier and TypeMethodDescriptioncopy(HtmlVisitor v) Creates a copy of this HtmlContinuation with a new visitorprotected final voidHook method to emit HTML.Methods inherited from class htmlflow.continuations.HtmlContinuationSync
executeMethods inherited from class htmlflow.continuations.HtmlContinuation
getNext
-
Constructor Details
-
HtmlContinuationSyncDynamic
public HtmlContinuationSyncDynamic(int currentDepth, boolean isClosed, E element, BiConsumer<E, T> consumer, HtmlVisitor visitor, HtmlContinuation next) - Parameters:
currentDepth- Indentation depth associated to this block.consumer- The continuation that consumes the element and a model.
-
-
Method Details
-
emitHtml
Description copied from class:HtmlContinuationSyncHook method to emit HTML.- Specified by:
emitHtmlin classHtmlContinuationSync
-
copy
Description copied from class:HtmlContinuationCreates a copy of this HtmlContinuation with a new visitor- Specified by:
copyin classHtmlContinuation
-
copyElement
-