net.sf.bimbo.impl
Class HtmlElement

java.lang.Object
  extended by net.sf.bimbo.impl.HtmlElement

public class HtmlElement
extends java.lang.Object

HTML element generator.

Author:
fcorneli

Constructor Summary
HtmlElement(java.lang.String elementName)
          Main constructor.
 
Method Summary
 HtmlElement addAttribute(java.lang.String name, java.lang.String value)
          Adds an attribute to the HTML element.
 HtmlElement setBody(java.lang.String body)
          Sets the body of this HTML element.
 HtmlElement setEscapedBody(java.lang.String escapedBody)
          Sets the HTML entity escaped body.
 void write(java.io.PrintWriter writer)
          Outputs the HTML element to the given writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlElement

public HtmlElement(java.lang.String elementName)
Main constructor.

Parameters:
elementName - the name of the HTML element.
Method Detail

setBody

public HtmlElement setBody(java.lang.String body)
Sets the body of this HTML element.

Parameters:
body -
Returns:
this HTML element.

addAttribute

public HtmlElement addAttribute(java.lang.String name,
                                java.lang.String value)
Adds an attribute to the HTML element.

Parameters:
name - the name of the attribute.
value - the attribute value. This can be null.
Returns:
this HTML element.

write

public void write(java.io.PrintWriter writer)
Outputs the HTML element to the given writer.

Parameters:
writer -

setEscapedBody

public HtmlElement setEscapedBody(java.lang.String escapedBody)
Sets the HTML entity escaped body.

Parameters:
escapedBody -
Returns:


Copyright © 2008 Frank Cornelis IT. All Rights Reserved.