|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.services.html.HtmlElement
com.jcorporate.expresso.services.html.Text
com.jcorporate.expresso.services.html.Heading
An HTML Heading item
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.Text |
contentString |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
Heading()
Constructor |
|
Heading(String newString)
Constructor Create the heading with the given name |
|
Heading(String newString,
int newLevel)
Constructor Create a heading with the given level and given string as contents |
|
Heading(String newString,
String newStyle)
Constructor Build a heading object with the given contents and the given style |
|
Heading(String newString,
String newStyle,
int newLevel)
Constructor Create a heading specifying the contents, style and level |
|
| Method Summary | |
protected void |
display(PrintWriter out,
int depth)
Display the heading |
void |
setAlignment(String newAlignment)
Set the horizontal alignment of the contents of this heading |
| Methods inherited from class com.jcorporate.expresso.services.html.Text |
resetDefaults, setDefaultFontColor, setDefaultFontFace, setDefaultSmall, setDefaultStyle, setFontColor, setFontFace, setSmall, setStyle, setText |
| 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 |
| Constructor Detail |
public Heading()
throws HtmlException
HtmlException - If the superclass constructor fails
public Heading(String newString)
throws HtmlException
newString - the value for the heading
public Heading(String newString,
int newLevel)
throws HtmlException
newString - String for the contents of the headingnewLevel - Level of the heading
HtmlException - If the parameters are invalid
public Heading(String newString,
String newStyle)
throws HtmlException
newString - The string for the headingnewStyle - A style, such as "bold", or "italic"
HtmlException - If the parameters are invalid
public Heading(String newString,
String newStyle,
int newLevel)
throws HtmlException
newString - String for the contents of the headingnewStyle - Style of the contents, e.g. "bold", "italic"newLevel - Level of the heading
HtmlException - If the parameters are invalid| Method Detail |
protected void display(PrintWriter out,
int depth)
throws HtmlException
display in class Textout - PrintWriter to displaydepth - the number of tabs to indent
HtmlException - If the heading cannot be displayed
public void setAlignment(String newAlignment)
throws HtmlException
newAlignment - New alignment as a string. Must be "left", "right"
or "center"
HtmlException - If the parameter is invalid
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||