public static class HtmlBuilder.Panel extends HtmlBuilder
HtmlBuilder representing an element.HtmlBuilder.Heading, HtmlBuilder.Panel, HtmlBuilder.SpanText, HtmlBuilder.TextHTML_TABLE_HEADER_SCOPE_FEATURE, HTML_TABLE_SECTIONS_FEATUREsbSTREAM_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, useNewTabappend, append, appendParent, clear, getNested, getParent, hasContentaddClass, append, attr, badAttribute, br, clean, clean, clean, cleanFormatted, close, closeElement, doClean, doClean, endOpen, getEscapeUnicode, getTags, getValidXML, isInOpen, longLines, matched, nbs, open, open, openElement, setEscapeUnicode, setValidXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddButton, addButton, addColumn, addFormInput, addFormLabel, addFormTable, addHeading, addImage, addLink, addLink, addList, addList, addList, addNumberedList, addObject, addTable, addTable, addTable, append, canAddaddActionButtons, addFormLabel, cleanFormatted, getSpanaddClass, br, nbsappendParent, attr, clean, clean, clean, close, getNested, getParent, open, open, setEscapeUnicodepublic final void addText(java.lang.String text)
ContentBuilderContentBuilder.getText().clean(text).appendParent().text - string to add to contentpublic final ExtendedXMLBuilder getText()
ContentBuilderExtendedXMLBuilder 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 ContentBuildergetText in class HtmlBuilderprotected void appendTo(AbstractXMLBuilder builder) throws java.lang.UnsupportedOperationException
appendTo in class XMLPrinterjava.lang.UnsupportedOperationExceptionpublic void addAttr(java.lang.String key,
java.lang.String value)
key - value - public java.lang.String toString()
toString in class XMLPrinterpublic SimpleXMLBuilder attr(java.lang.String name, java.lang.CharSequence s)
SimpleXMLBuilderattr in interface SimpleXMLBuilderattr in class AbstractXMLBuildername - String attribute names - CharSequence attribute value or null for no valueprotected java.lang.CharSequence getAttribute(java.lang.String name)
getAttribute in class AbstractXMLBuilder