Package | Description |
---|---|
com.google.common.html.types |
Modifier and Type | Method and Description |
---|---|
SafeHtmlBuilder |
SafeHtmlBuilder.appendContent(Iterable<SafeHtml> htmls)
Appends the given
htmls as this element's content, in the sequence the Iterable
returns them. |
SafeHtmlBuilder |
SafeHtmlBuilder.appendContent(Iterator<SafeHtml> htmls)
Appends the given
htmls as this element's content, in the sequence the Iterator
returns them. |
SafeHtmlBuilder |
SafeHtmlBuilder.appendContent(SafeHtml... htmls)
Appends the given
htmls as this element's content, in sequence. |
SafeHtmlBuilder |
SafeHtmlBuilder.escapeAndAppendContent(String text)
HTML-escapes and appends
text to this element's content. |
SafeHtmlBuilder |
SafeHtmlBuilder.setAlt(String value)
Sets the
alt attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setClass(String value)
Sets the
class attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setColor(String value)
Sets the
color attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setDataAttribute(String name,
String value)
Sets a custom data attribute,
name , to value for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setDir(SafeHtmlBuilder.DirValue value)
Sets the
dir attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setHref(SafeUrl value)
Sets the
href attribute for any element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setHref(TrustedResourceUrl value)
Sets the
href attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setId(String value)
Sets the
id attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setIdWithPrefix(String prefix,
String value)
Sets the
id attribute for this element, as the concatenation of a
CompileTimeConstant prefix and a value . |
SafeHtmlBuilder |
SafeHtmlBuilder.setName(String value)
Sets the
name attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setPlaceholder(String value)
Sets the
placeholder attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setRel(String value)
Sets the
rel attribute for any element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setSrc(SafeUrl value)
Sets the
src attribute. |
SafeHtmlBuilder |
SafeHtmlBuilder.setSrc(TrustedResourceUrl value)
Sets the
src attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setStyle(SafeStyle value)
Sets the
style attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setTarget(SafeHtmlBuilder.TargetValue value)
Sets the
target attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setTitle(String value)
Sets the
title attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.setType(String value)
Sets the
type attribute for this element, if it's one of button ,
command , input , li , menu , ol , or ul . |
SafeHtmlBuilder |
SafeHtmlBuilder.setValue(String value)
Sets the
value attribute for this element. |
SafeHtmlBuilder |
SafeHtmlBuilder.useSlashOnVoid()
Causes the builder to use a slash on the tag of a void element, emitting
e.g.
|