Class HtmlElementWriter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter
-
public class HtmlElementWriter extends Object
Simple writer for html elements. Used by the
HtmlDocumentBuilder.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>attributesprotected booleanisSelfClosingselfClosing means that the element should not be rendered as a start + end tag pair but as a single tag using "/" to close the tag inlineprotected StringtagNameprotected StringtextContent
-
Constructor Summary
Constructors Constructor Description HtmlElementWriter(String tagName)HtmlElementWriter(String tagName, boolean isSelfClosing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlElementWriterattribute(String name, String value)protected StringescapeQuotes(String attributeValue)HtmlElementWritertextContent(String text)protected voidwriteAttributes(HtmlDocumentBuilder.HtmlWriteContext context)voidwriteContent(HtmlDocumentBuilder.HtmlWriteContext context)protected voidwriteEndLine(HtmlDocumentBuilder.HtmlWriteContext context)voidwriteEndTag(HtmlDocumentBuilder.HtmlWriteContext context)protected voidwriteEndTagElement(HtmlDocumentBuilder.HtmlWriteContext context)protected voidwriteLeadingWhitespace(HtmlDocumentBuilder.HtmlWriteContext context)voidwriteStartTag(HtmlDocumentBuilder.HtmlWriteContext context)protected voidwriteStartTagClose(HtmlDocumentBuilder.HtmlWriteContext context)protected voidwriteStartTagOpen(HtmlDocumentBuilder.HtmlWriteContext context)protected voidwriteTextContent(HtmlDocumentBuilder.HtmlWriteContext context)
-
-
-
Method Detail
-
writeStartTag
public void writeStartTag(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeContent
public void writeContent(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeEndTag
public void writeEndTag(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeEndTagElement
protected void writeEndTagElement(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeTextContent
protected void writeTextContent(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeStartTagOpen
protected void writeStartTagOpen(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeAttributes
protected void writeAttributes(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeEndLine
protected void writeEndLine(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeStartTagClose
protected void writeStartTagClose(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeLeadingWhitespace
protected void writeLeadingWhitespace(HtmlDocumentBuilder.HtmlWriteContext context)
-
attribute
public HtmlElementWriter attribute(String name, String value)
-
textContent
public HtmlElementWriter textContent(String text)
-
-