org.camunda.bpm.engine.impl.form.engine
Class HtmlElementWriter

java.lang.Object
  extended by 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
protected  Map<String,String> attributes
           
protected  boolean isSelfClosing
          selfClosing means that the element should not be rendered as a start + end tag pair but as a single tag using "/" to close the tag inline
protected  String tagName
           
protected  String textContent
           
 
Constructor Summary
HtmlElementWriter(String tagName)
           
HtmlElementWriter(String tagName, boolean isSelfClosing)
           
 
Method Summary
 HtmlElementWriter attribute(String name, String value)
           
 HtmlElementWriter textContent(String text)
           
protected  void writeAttributes(HtmlDocumentBuilder.HtmlWriteContext context)
           
 void writeContent(HtmlDocumentBuilder.HtmlWriteContext context)
           
protected  void writeEndLine(HtmlDocumentBuilder.HtmlWriteContext context)
           
 void writeEndTag(HtmlDocumentBuilder.HtmlWriteContext context)
           
protected  void writeEndTagElement(HtmlDocumentBuilder.HtmlWriteContext context)
           
protected  void writeLeadingWhitespace(HtmlDocumentBuilder.HtmlWriteContext context)
           
 void writeStartTag(HtmlDocumentBuilder.HtmlWriteContext context)
           
protected  void writeStartTagClose(HtmlDocumentBuilder.HtmlWriteContext context)
           
protected  void writeStartTagOpen(HtmlDocumentBuilder.HtmlWriteContext context)
           
protected  void writeTextContent(HtmlDocumentBuilder.HtmlWriteContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tagName

protected String tagName

isSelfClosing

protected boolean isSelfClosing
selfClosing means that the element should not be rendered as a start + end tag pair but as a single tag using "/" to close the tag inline


textContent

protected String textContent

attributes

protected Map<String,String> attributes
Constructor Detail

HtmlElementWriter

public HtmlElementWriter(String tagName)

HtmlElementWriter

public HtmlElementWriter(String tagName,
                         boolean isSelfClosing)
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)


Copyright © 2015 camunda services GmbH. All rights reserved.