public static class HTMLUtils.HTMLTag extends WebUtils.Tag
Constructor and Description |
---|
HTMLUtils.HTMLTag(String name)
Creates a new HTML tag.
|
Modifier and Type | Method and Description |
---|---|
HTMLUtils.HTMLTag |
add(String content)
Adds an direct string content to this HTML tag.
|
HTMLUtils.HTMLTag |
add(WebUtils.Tag tag)
Adds an HTML tag to this HTML tag.
|
HTMLUtils.HTMLTag |
attr(String name,
String value)
Adds an attribute to this HTML tag.
|
addCData, addContent, addContent, addContent, addContent, attr, hasContent, noShorthand, toString
public HTMLUtils.HTMLTag(String name)
name
- HTML tag namepublic HTMLUtils.HTMLTag add(WebUtils.Tag tag)
tag
- HTML tag to be addedpublic HTMLUtils.HTMLTag attr(String name, String value)
name
- attribute namevalue
- attribute valuepublic HTMLUtils.HTMLTag add(String content)
content
- content to be added to this HTML tagCopyright © 2015. All Rights Reserved.