net.sf.jolene.dom
Class Text

java.lang.Object
  extended by net.sf.jolene.dom.HTMLElement
      extended by net.sf.jolene.dom.Text
All Implemented Interfaces:
java.lang.Cloneable, IAttributes, ICollection, IStyles

public final class Text
extends HTMLElement

This represents arbitrary text to be rendered in an html document. These objects are created when the Parser detects a LABEL tag containing other HTML elements.

Since:
Feb 11, 2006 8:21:44 AM
Author:
Dan Howard

Constructor Summary
Text()
           
 
Method Summary
 Text clone()
          Returns a clone of the text object.
 void setValue(java.lang.String value)
          Sets the text on the text object.
 java.lang.String toString()
          Renders the text.
 
Methods inherited from class net.sf.jolene.dom.HTMLElement
clear, getAfterText, getAttribute, getBeforeText, getContent, getName, getStyle, getTag, getValue, hasAttribute, hasStyle, isChecked, isDisabled, isReadonly, isRenderable, keySet, removeAttribute, removeStyle, resetStyles, resetStyles, setAfterText, setAttribute, setBeforeText, setChecked, setContent, setDisabled, setName, setReadonly, setRenderable, setStyle, setStyles, setStyles, swapWith
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Text

public Text()
Method Detail

clone

public Text clone()
Returns a clone of the text object.

Overrides:
clone in class HTMLElement
Returns:
Text object.
See Also:
DocumentFactory

setValue

public void setValue(java.lang.String value)
Sets the text on the text object. Same as setText.

Overrides:
setValue in class HTMLElement
Parameters:
value - text to set.

toString

public java.lang.String toString()
Renders the text.

Overrides:
toString in class HTMLElement
Returns:
The text as a html string.