Expresso 5-6

com.jcorporate.expresso.services.html
Class Text

java.lang.Object
  extended bycom.jcorporate.expresso.services.html.HtmlElement
      extended bycom.jcorporate.expresso.services.html.Text
Direct Known Subclasses:
Heading

public class Text
extends HtmlElement

Version:
$Revision: 1.10 $ $Date: 2004/11/18 02:03:32 $
Author:
Michael Nash

Field Summary
protected  String contentString
           
 
Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement
attributes, contents, cSSClass, cSSID
 
Constructor Summary
Text()
          Constructor
Text(String newString)
          Constructor
Text(String newString, String newStyle)
          Constructor
 
Method Summary
protected  void display(PrintWriter out, int depth)
          Display the element to the client Each HtmlElement must implement this method
 void resetDefaults()
           
static void setDefaultFontColor(String newFontColor)
           
static void setDefaultFontFace(String newFontFace)
           
static void setDefaultSmall(boolean newSmall)
           
static void setDefaultStyle(String newStyle)
           
 void setFontColor(String newColor)
           
 void setFontFace(String newFace)
           
 void setSmall(boolean newSmall)
           
 void setStyle(String newStyle)
           
 void setText(String newText)
           
 
Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentString

protected String contentString
Constructor Detail

Text

public Text()
     throws HtmlException
Constructor


Text

public Text(String newString)
     throws HtmlException
Constructor

Parameters:
newString - new text value

Text

public Text(String newString,
            String newStyle)
     throws HtmlException
Constructor

Parameters:
newString - value of text
newStyle - CSS style
Method Detail

display

protected void display(PrintWriter out,
                       int depth)
                throws HtmlException
Description copied from class: HtmlElement
Display the element to the client Each HtmlElement must implement this method

Specified by:
display in class HtmlElement
Parameters:
out - the print writer
depth - the number of tabs to indent
Throws:
HtmlException - If the element (or it's contents) cannot be displayed

resetDefaults

public void resetDefaults()
                   throws HtmlException
Throws:
HtmlException

setDefaultFontColor

public static void setDefaultFontColor(String newFontColor)
                                throws HtmlException
Parameters:
newFontColor - font color
Throws:
HtmlException

setDefaultFontFace

public static void setDefaultFontFace(String newFontFace)
                               throws HtmlException
Parameters:
newFontFace - font face
Throws:
HtmlException

setDefaultSmall

public static void setDefaultSmall(boolean newSmall)
                            throws HtmlException
Parameters:
newSmall - set to true for small
Throws:
HtmlException

setDefaultStyle

public static void setDefaultStyle(String newStyle)
Parameters:
newStyle - sets the default style

setFontColor

public void setFontColor(String newColor)
                  throws HtmlException
Parameters:
newColor - new font color
Throws:
HtmlException

setFontFace

public void setFontFace(String newFace)
                 throws HtmlException
Parameters:
newFace - new font face
Throws:
HtmlException

setSmall

public void setSmall(boolean newSmall)
              throws HtmlException
Parameters:
newSmall - set to true for small font
Throws:
HtmlException

setStyle

public void setStyle(String newStyle)
              throws HtmlException
Parameters:
newStyle - set the new style
Throws:
HtmlException

setText

public void setText(String newText)
             throws HtmlException
Parameters:
newText - new text for the item
Throws:
HtmlException

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.