public static class HtmlBuilder.Panel extends HtmlBuilder
HtmlBuilder
representing an element.HtmlBuilder.Heading, HtmlBuilder.Panel, HtmlBuilder.SpanText, HtmlBuilder.Text
HTML_TABLE_HEADER_SCOPE_FEATURE, HTML_TABLE_SECTIONS_FEATURE
sb
STREAM_BUILDER_FEATURE
Modifier and Type | Method and Description |
---|---|
void |
addAttr(java.lang.String key,
java.lang.String value)
Add an attribute to the container itself.
|
void |
addText(java.lang.String text)
Add unformatted text.
|
protected void |
appendTo(AbstractXMLBuilder builder) |
SimpleXMLBuilder |
attr(java.lang.String name,
java.lang.CharSequence s)
Add an attribute.
|
protected java.lang.CharSequence |
getAttribute(java.lang.String name) |
ExtendedXMLBuilder |
getText()
create a
ExtendedXMLBuilder that appends its contents as XML
text when the SimpleXMLBuilder.appendParent() method is called. |
java.lang.String |
toString() |
addActionButtons, addParent, addScript, addScriptFile, addTable, closeDetails, getDetails, getFormPolicy, getHeading, getLogger, getPanel, getPanel, getSpan, paragraph, setNewTab, setTableSections, strip, useNewTab
append, append, appendParent, clear, getNested, getParent, hasContent
addClass, append, attr, badAttribute, br, clean, clean, clean, cleanFormatted, close, closeElement, doClean, doClean, endOpen, getEscapeUnicode, getTags, getValidXML, isInOpen, longLines, matched, nbs, open, open, openElement, setEscapeUnicode, setValidXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addButton, addButton, addColumn, addFormInput, addFormLabel, addFormTable, addHeading, addImage, addLink, addLink, addList, addList, addList, addNumberedList, addObject, addTable, addTable, addTable, append, canAdd
addActionButtons, addFormLabel, cleanFormatted, getSpan
addClass, br, nbs
appendParent, attr, clean, clean, clean, close, getNested, getParent, open, open, setEscapeUnicode
public final void addText(java.lang.String text)
ContentBuilder
ContentBuilder.getText()
.clean(text).appendParent().text
- string to add to contentpublic final ExtendedXMLBuilder getText()
ContentBuilder
ExtendedXMLBuilder
that appends its contents as XML
text when the SimpleXMLBuilder.appendParent()
method is called.
Normally this represents a separate paragraph of text but this can be mapped
onto ContentBuilder.getSpan()
where this does not make sense for example where the
ContentBuilder
represents a heading or table cell.getText
in interface ContentBuilder
getText
in class HtmlBuilder
protected void appendTo(AbstractXMLBuilder builder) throws java.lang.UnsupportedOperationException
appendTo
in class XMLPrinter
java.lang.UnsupportedOperationException
public void addAttr(java.lang.String key, java.lang.String value)
key
- value
- public java.lang.String toString()
toString
in class XMLPrinter
public SimpleXMLBuilder attr(java.lang.String name, java.lang.CharSequence s)
SimpleXMLBuilder
attr
in interface SimpleXMLBuilder
attr
in class AbstractXMLBuilder
name
- String attribute names
- CharSequence attribute value or null for no valueprotected java.lang.CharSequence getAttribute(java.lang.String name)
getAttribute
in class AbstractXMLBuilder