public class HtmlWriter extends XMLWriter implements Contexed, XMLContentBuilder
XMLContentBuilderHtmlBuilder![]() |
![]() |
STREAM_BUILDER_FEATURE| Constructor and Description |
|---|
HtmlWriter(AppContext c,
java.io.Writer w) |
| Modifier and Type | Method and Description |
|---|---|
ContentBuilder |
addParent()
append a nested panel to its parent content.
|
AppContext |
getContext() |
HtmlFormPolicy |
getFormPolicy() |
ContentBuilder |
getHeading(int level)
create a
ContentBuilder that appends its contents as a
heading when the ContentBuilder.addParent() method is called. |
Logger |
getLogger(AppContext conn) |
ContentBuilder |
getPanel(java.lang.String... type)
create a nested content panel
|
ContentBuilder |
getPanel(java.lang.String type) |
ExtendedXMLBuilder |
getSpan()
create a
ExtendedXMLBuilder that appends its contents as XML
text when the SimpleXMLBuilder.appendParent() method is called. |
ExtendedXMLBuilder |
getText()
create a
ExtendedXMLBuilder that appends its contents as XML
text when the SimpleXMLBuilder.appendParent() method is called. |
boolean |
setNewTab(boolean new_tab) |
boolean |
useNewTab() |
append, append, appendParent, getNested, getParent, setWriteraddClass, append, attr, attr, badAttribute, br, clean, clean, clean, cleanFormatted, clear, close, closeElement, doClean, doClean, endOpen, getAttribute, getEscapeUnicode, getTags, getValidXML, isInOpen, longLines, matched, nbs, open, open, openElement, setEscapeUnicode, setValidXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddActionButtons, addButton, addButton, addColumn, addFormInput, addFormLabel, addFormTable, addHeading, addImage, addLink, addLink, addList, addList, addList, addNumberedList, addObject, addTable, addTable, addTable, addTable, addText, append, canAdd, closeDetails, getDetailsaddActionButtons, addFormLabel, cleanFormatted, getSpanaddClass, br, nbsappendParent, attr, attr, clean, clean, clean, close, getNested, getParent, open, open, setEscapeUnicodepublic HtmlWriter(AppContext c, java.io.Writer w)
w - public 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 ContentBuilderpublic ExtendedXMLBuilder getSpan()
ContentBuilderExtendedXMLBuilder that appends its contents as XML
text when the SimpleXMLBuilder.appendParent() method is called.
This is intended for in-line text rather than creating a paragraph.getSpan in interface ContentBuilderExtendedXMLBuilderpublic ContentBuilder getHeading(int level)
ContentBuilderContentBuilder that appends its contents as a
heading when the ContentBuilder.addParent() method is called.
If the heading is to only contain text use the ContentBuilder.addHeading(int, String) method.getHeading in interface ContentBuilderlevel - level of headingpublic ContentBuilder getPanel(java.lang.String... type) throws java.lang.UnsupportedOperationException
ContentBuildergetPanel in interface ContentBuildertype - Strings specifying a formatting types for the panel.java.lang.UnsupportedOperationExceptionpublic ContentBuilder getPanel(java.lang.String type) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionpublic ContentBuilder addParent() throws java.lang.UnsupportedOperationException
ContentBuilderaddParent in interface ContentBuilderjava.lang.UnsupportedOperationExceptionpublic Logger getLogger(AppContext conn)
getLogger in interface XMLContentBuilderpublic boolean useNewTab()
useNewTab in interface XMLContentBuilderpublic boolean setNewTab(boolean new_tab)
setNewTab in interface XMLContentBuilderpublic AppContext getContext()
getContext in interface Contexedpublic HtmlFormPolicy getFormPolicy()
getFormPolicy in interface XMLContentBuilder