cst.util
Class HTMLGenerationUtility

java.lang.Object
  extended by cst.util.HTMLGenerationUtility

public class HTMLGenerationUtility
extends java.lang.Object

Builds up an instance of StringBuilder with through methods that append HTML-formatted strings.


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.  
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
HTMLGenerationUtility()
           
 
Method Summary
 void addBoldColumnValue(java.lang.String value)
           
 void addBoldValue(java.lang.String value)
           
 void addColumnValue(java.lang.String columnValue)
           
 void addFooter(java.lang.String text)
           
 void addHeader(int headerLevel, java.lang.String title)
           
 void addParagraph(java.lang.String paragraph)
           
 void addSeparator()
           
 void append(java.lang.String text)
           
 void beginDocument()
           
 void beginRow()
           
 void beginTable()
           
 void beginTableWithBorder()
           
 void endDocument()
           
 void endRow()
           
 void endTable()
           
 java.lang.String getHTML()
           
 void nextLine()
           
 void setUseTableBorder(boolean useTableBorder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLGenerationUtility

public HTMLGenerationUtility()
Method Detail

getHTML

public java.lang.String getHTML()

setUseTableBorder

public void setUseTableBorder(boolean useTableBorder)

addHeader

public void addHeader(int headerLevel,
                      java.lang.String title)

beginDocument

public void beginDocument()

endDocument

public void endDocument()

beginTableWithBorder

public void beginTableWithBorder()

beginTable

public void beginTable()

beginRow

public void beginRow()

nextLine

public void nextLine()

addParagraph

public void addParagraph(java.lang.String paragraph)

addColumnValue

public void addColumnValue(java.lang.String columnValue)

addBoldValue

public void addBoldValue(java.lang.String value)

addBoldColumnValue

public void addBoldColumnValue(java.lang.String value)

endRow

public void endRow()

endTable

public void endTable()

append

public void append(java.lang.String text)

addFooter

public void addFooter(java.lang.String text)

addSeparator

public void addSeparator()