| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | doNotRenderLinks(boolean
if true then increment the doNotRenderLinks value, else decrement it doNotRenderLinks)Increment/Decrement the do not render links in this context. |
| public void | |
| public void | |
| public @NotNull MutableAttributes | Returns: the extended attributes with added/updated/removed entriesthe tag of the node being rendered, some nodes render multiple tags with attributes part, @Nullable Attributes the attributes that were calculated by the renderer or null, these may be modified. To preserve originals pass a copy. attributes)Extend the attributes by extensions for the node being currently rendered. |
| public @NotNull MutableAttributes | Returns: the extended attributes with added/updated/removed entriesnode for which to get attributes node, @NotNull AttributablePart the tag of the node being rendered, some nodes render multiple tags with attributes part, @Nullable Attributes the attributes that were calculated by the renderer or null, these may be modified. To preserve originals pass a copy. attributes)Extend the attributes by extensions for the node being currently rendered. |
| public @NotNull NodeRendererContext | Returns: a new rendering context with a given appendable for its outputwhether the html writer of the sub-context should inherit the current context's indentation level or start with 0 indentation inheritIndent)Creates a child rendering context that can be used to collect rendered html text of the previously registered node renderer. |
| public @NotNull HtmlRendererOptions | |
| public @NotNull HtmlWriter | |
| public @Nullable String | Returns: id string or nullnode for which to get an id, depends on the node)HtmlIdGenerator assigned for the context. Default generator
only creates ids for com. nodes or custom nodes that implement com. interface.Get the id attribute for the given node. |
| public @NotNull RenderingPhase | |
| public @NotNull NodeRendererContext | Returns: a new rendering context with a given appendable for its outputwhether the html writer of the sub-context should inherit the current context's indentation level or start with 0 indentation inheritIndent)Creates a child rendering context that can be used to collect rendered html text. |
| public boolean | Returns: true if links should be output as only text.Whether the current rendering context has link rendering disabled. |
| delegateRender | back to summary |
|---|---|
| public void delegateRender() pass node rendering to previously registered handler | |
| doNotRenderLinks | back to summary |
|---|---|
| public void doNotRenderLinks(boolean doNotRenderLinks) Increment/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.
| |
| doNotRenderLinks | back to summary |
|---|---|
| public void doNotRenderLinks() Increment 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. | |
| doRenderLinks | back to summary |
|---|---|
| public void doRenderLinks() 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.
| |
| extendRenderingNodeAttributes | back to summary |
|---|---|
| public @NotNull MutableAttributes extendRenderingNodeAttributes(@NotNull AttributablePart part, @Nullable Attributes attributes) Extend the attributes by extensions for the node being currently rendered.
| |
| extendRenderingNodeAttributes | back to summary |
|---|---|
| public @NotNull MutableAttributes extendRenderingNodeAttributes(@NotNull Node node, @NotNull AttributablePart part, @Nullable Attributes attributes) Extend the attributes by extensions for the node being currently rendered.
| |
| getDelegatedSubContext | back to summary |
|---|---|
| public @NotNull NodeRendererContext getDelegatedSubContext(boolean inheritIndent) Creates a child rendering context that can be used to collect rendered html text of the previously registered node renderer. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.
| |
| getHtmlOptions | back to summary |
|---|---|
public @NotNull HtmlRendererOptions getHtmlOptions()
| |
| getHtmlWriter | back to summary |
|---|---|
public @NotNull HtmlWriter getHtmlWriter()
| |
| getNodeId | back to summary |
|---|---|
| public @Nullable String getNodeId(@NotNull Node node) Get the id attribute for the given node.
| |
| getRenderingPhase | back to summary |
|---|---|
public @NotNull RenderingPhase getRenderingPhase()
| |
| getSubContext | back to summary |
|---|---|
| public @NotNull NodeRendererContext getSubContext(boolean inheritIndent) Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer, renderedNode, renderingHandler and doNotRenderLinksNesting from the parent.
| |
| isDoNotRenderLinks | back to summary |
|---|---|
| public boolean isDoNotRenderLinks() Whether 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.
| |