Interface HtmlContentBuilder
- All Superinterfaces:
HasHtmlBuilderTarget
- All Known Subinterfaces:
HtmlFragmentBuilder
Builder for content of html tag, instances are returned by
HtmlTagBuilder.append()
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptioncontext()
Creates new builder for same target and context, never returns null.Caller must ensure that the html is well formatted and encoded, because this method does no validation or encoding.javaScript
(String value) nbsp()
Add not break space.tag()
Returns selector for appending a child tag, the methods on returned instance can be called multiple times to append multiple children.textWithFormatting
(String value) Methods inherited from interface com.polarion.alm.shared.api.utils.html.HasHtmlBuilderTarget
target
-
Method Details
-
tag
Returns selector for appending a child tag, the methods on returned instance can be called multiple times to append multiple children.- Throws:
IllegalStateException
- afterHtmlTagBuilder.finished()
was called.
-
text
- Parameters:
value
- - un-escaped value, new lines(\n) and other formatting characters are not handled in any way. can be null - when null, than nothing will be appended to result- Throws:
IllegalStateException
- afterHtmlTagBuilder.finished()
was called.
-
textWithFormatting
- Parameters:
value
- - un-escaped value, new lines(\n) will be replaced with
and other formatting characters will be also handled. Can be null - when null, than nothing will be appended to result- Throws:
IllegalStateException
- afterHtmlTagBuilder.finished()
was called.
-
javaScript
- Parameters:
value
- - un-escaped java script. can be null - when null, than nothing will be appended to result- Throws:
IllegalStateException
- afterHtmlTagBuilder.finished()
was called.
-
html
Caller must ensure that the html is well formatted and encoded, because this method does no validation or encoding.- Parameters:
value
- can be null - when null, than nothing will be appended to result- Throws:
IllegalStateException
- afterHtmlTagBuilder.finished()
was called.
-
nbsp
Add not break space. -
decoratedLabel
-
context
-
createNewFragmentBuilder
Creates new builder for same target and context, never returns null.
-