Class NodeRendererSubContext
java.lang.Object
com.vladsch.flexmark.html.NodeRendererSubContext
- All Implemented Interfaces:
LinkResolverBasicContext, LinkResolverContext, NodeRendererContext
- Direct Known Subclasses:
HtmlRenderer.MainNodeRenderer, HtmlRenderer.MainNodeRenderer.SubNodeRenderer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) final HtmlWriter(package private) NodeRenderingHandlerWrapper(package private) Node -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIncrement the do not render links in this context.voiddoNotRenderLinks(boolean doNotRenderLinks) Increment/Decrement the do not render links in this context.voidDecrement the do not render links in this context.voidflushTo(@NotNull Appendable out, int maxTrailingBlankLines) voidflushTo(@NotNull Appendable out, int maxBlankLines, int maxTrailingBlankLines) protected int@NotNull HtmlWriterbooleanWhether the current rendering context has link rendering disabled.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LinkResolverContext
encodeUrl, getCurrentNode, getDocument, getOptions, render, renderChildren, resolveLink, resolveLinkMethods inherited from interface NodeRendererContext
delegateRender, extendRenderingNodeAttributes, extendRenderingNodeAttributes, getDelegatedSubContext, getHtmlOptions, getNodeId, getRenderingPhase, getSubContext
-
Field Details
-
htmlWriter
-
renderingNode
Node renderingNode -
renderingHandlerWrapper
NodeRenderingHandlerWrapper renderingHandlerWrapper -
doNotRenderLinksNesting
int doNotRenderLinksNesting
-
-
Constructor Details
-
NodeRendererSubContext
-
-
Method Details
-
getHtmlWriter
- Specified by:
getHtmlWriterin interfaceNodeRendererContext- Returns:
- the HTML writer to use
-
flushTo
-
flushTo
-
getDoNotRenderLinksNesting
protected int getDoNotRenderLinksNesting() -
isDoNotRenderLinks
public boolean isDoNotRenderLinks()Description copied from interface:NodeRendererContextWhether the current rendering context has link rendering disabled. When true any renderer that would render a link, should only output the text of that link and image links should not render anything.- Specified by:
isDoNotRenderLinksin interfaceNodeRendererContext- Returns:
- true if links should be output as only text.
- See Also:
-
doNotRenderLinks
public void doNotRenderLinks(boolean doNotRenderLinks) Description copied from interface:NodeRendererContextIncrement/Decrement the do not render links in this context. This value will persist for the duration of the current node's render() method and will be restored upon return. Effectively it will persist for the rendering of the children of this node.- Specified by:
doNotRenderLinksin interfaceNodeRendererContext- Parameters:
doNotRenderLinks- if true then increment the doNotRenderLinks value, else decrement it- See Also:
-
doNotRenderLinks
public void doNotRenderLinks()Description copied from interface:NodeRendererContextIncrement the do not render links in this context. This value will persist for the duration of the current node's render() method and will be restored upon return. Effectively it will persist for the rendering of the children of this node.- Specified by:
doNotRenderLinksin interfaceNodeRendererContext- See Also:
-
doRenderLinks
public void doRenderLinks()Description copied from interface:NodeRendererContextDecrement the do not render links in this context. This value will persist for the duration of the current node's render() method and will be restored upon return. Effectively it will persist for the rendering of the children of this node.- Specified by:
doRenderLinksin interfaceNodeRendererContext- See Also:
-