|
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.Page
An HTML page - a page element contains all other elements and is what actually gets sent to the client
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
Page()
Constructor |
|
Page(String newTitle)
Constructor Create a new page object with the given title |
|
| Method Summary | |
void |
add(HtmlElement newElement)
Add a new element to the page |
void |
display(HttpServletRequest req,
HttpServletResponse res,
String charset)
|
protected void |
display(PrintWriter out)
Display the page to the client Once a page is displayed it cannot be displayed again or new element added to it. |
void |
display(PrintWriter out,
int depth)
Raw display after content type and charset has been set. |
void |
displayPartial(HttpServletRequest req,
HttpServletResponse res,
String charset)
|
protected void |
displayPartial(PrintWriter out)
Display a partial page to the client, which can be included in another page such as a jsp page. |
void |
setBGColor(String newColor)
Set the background color for the page |
void |
setDBName(String newDBName)
Set a db name for this page - if no DB name is specified, "default" is used. |
void |
setTitle(String newTitle)
Set a new title for this page |
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
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 Page()
throws HtmlException
HtmlException - If the superclass constructor fails
public Page(String newTitle)
throws HtmlException
newTitle - Title for the page
HtmlException - If the parameter is invalid| Method Detail |
public void add(HtmlElement newElement)
throws HtmlException
add in class HtmlElementnewElement - Element to add
HtmlException - If the parameter is invalid
public void display(HttpServletRequest req,
HttpServletResponse res,
String charset)
throws HtmlException
HtmlException
public void display(PrintWriter out,
int depth)
throws HtmlException
display in class HtmlElementdepth - the number of tabs to indentout - the output print writer
HtmlException - If the element (or it's contents) cannot be displayed
protected void display(PrintWriter out)
throws HtmlException
out - PrintWriter to the client
HtmlException - If the page or it's contents cannot be displayed
public void displayPartial(HttpServletRequest req,
HttpServletResponse res,
String charset)
throws HtmlException
HtmlException
protected void displayPartial(PrintWriter out)
throws HtmlException
out - PrintWriter to the client
HtmlException - If the page or it's contents cannot be displayed
public void setBGColor(String newColor)
throws HtmlException
newColor - Color for the background of this page
HtmlException - If the parameter is invalidpublic void setDBName(String newDBName)
newDBName - the new database namepublic void setTitle(String newTitle)
newTitle - Title for the page
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||