com.jcorporate.expresso.services.html
Class Text
java.lang.Object
com.jcorporate.expresso.services.html.HtmlElement
com.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
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent |
contentString
protected String contentString
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 textnewStyle - CSS style
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 writerdepth - 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
Please see www.jcorporate.com for information about new Expresso releases.