|
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.Paragraph
An HTML paragraph object
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
Paragraph()
Constructor |
|
Paragraph(HtmlElement newElement)
Constructor Create the paragraph with the given element as it's contents |
|
Paragraph(String newString)
Constructor Create a paragraph with the given name |
|
| Method Summary | |
protected void |
display(PrintWriter out,
int depth)
Display the paragraph |
void |
setAlignment(String newAlignment)
Set the horizontal alignment of the contents of this paragraph |
| 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 Paragraph()
throws HtmlException
HtmlException - If the superclass constructor fails
public Paragraph(HtmlElement newElement)
throws HtmlException
newElement - Element to use as contents
HtmlException - If the parameter is invalid
public Paragraph(String newString)
throws HtmlException
newString - Name of the new paragraph
HtmlException - If the parameter is invalid| Method Detail |
protected void display(PrintWriter out,
int depth)
throws HtmlException
display in class HtmlElementout - PrintWriter to the clientdepth - the number of tabs to indent
HtmlException - If the paragraph 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 | ||||||||||