public class HtmlWriter extends XMLWriter implements Contexed, XMLContentBuilder
XMLContentBuilder
HtmlBuilder
![]() |
![]() |
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, setWriter
addClass, 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, setValidXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addActionButtons, addButton, addButton, addColumn, addFormInput, addFormLabel, addFormTable, addHeading, addImage, addLink, addLink, addList, addList, addList, addNumberedList, addObject, addTable, addTable, addTable, addTable, addText, append, canAdd, closeDetails, getDetails
addActionButtons, addFormLabel, cleanFormatted, getSpan
addClass, br, nbs
appendParent, attr, attr, clean, clean, clean, close, getNested, getParent, open, open, setEscapeUnicode
public HtmlWriter(AppContext c, java.io.Writer w)
w
- public 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
public ExtendedXMLBuilder getSpan()
ContentBuilder
ExtendedXMLBuilder
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 ContentBuilder
ExtendedXMLBuilder
public ContentBuilder getHeading(int level)
ContentBuilder
ContentBuilder
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 ContentBuilder
level
- level of headingpublic ContentBuilder getPanel(java.lang.String... type) throws java.lang.UnsupportedOperationException
ContentBuilder
getPanel
in interface ContentBuilder
type
- Strings specifying a formatting types for the panel.java.lang.UnsupportedOperationException
public ContentBuilder getPanel(java.lang.String type) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public ContentBuilder addParent() throws java.lang.UnsupportedOperationException
ContentBuilder
addParent
in interface ContentBuilder
java.lang.UnsupportedOperationException
public Logger getLogger(AppContext conn)
getLogger
in interface XMLContentBuilder
public boolean useNewTab()
useNewTab
in interface XMLContentBuilder
public boolean setNewTab(boolean new_tab)
setNewTab
in interface XMLContentBuilder
public AppContext getContext()
getContext
in interface Contexed
public HtmlFormPolicy getFormPolicy()
getFormPolicy
in interface XMLContentBuilder