| java.lang.Object com.jcorporate.expresso.services.html.HtmlElement com.jcorporate.expresso.services.html.Page
Page | public class Page extends HtmlElement (Code) | | An HTML page - a page element contains all other elements and is what
actually gets sent to the client
author: Michael Nash version: $Revision: 1.13 $ $Date: 2004/11/17 20:48:18 $ |
Page | public Page(String newTitle) throws HtmlException(Code) | | Constructor
Create a new page object with the given title
Parameters: newTitle - Title for the page throws: HtmlException - If the parameter is invalid |
display | public synchronized void display(PrintWriter out, int depth) throws HtmlException(Code) | | Raw display after content type and charset has been set.
Make sure you've done both if you call this direct
depth is ignored for a page because depth = 0;
Parameters: depth - the number of tabs to indent Parameters: out - the output print writer |
display | protected synchronized void display(PrintWriter out) throws HtmlException(Code) | | Display the page to the client
Once a page is displayed it cannot be displayed again or new
element added to it. This used to be the "public" method, but
display(HttpServletRequest, HttpServletResponse, String) should be used
now instead.
Parameters: out - PrintWriter to the client throws: HtmlException - If the page or it's contents cannot be displayed |
displayPartial | protected synchronized void displayPartial(PrintWriter out) throws HtmlException(Code) | | Display a partial page to the client, which can
be included in another page such as a jsp page.
Once a page is displayed it cannot be displayed again or new
element added to it.
This used to be a public method, but
Use displayPartial(HttpServletRequest, HttpServletResponse, String) instead now.
Parameters: out - PrintWriter to the client throws: HtmlException - If the page or it's contents cannot be displayed |
setBGColor | public synchronized void setBGColor(String newColor) throws HtmlException(Code) | | Set the background color for the page
Parameters: newColor - Color for the background of this page throws: HtmlException - If the parameter is invalid |
setDBName | public synchronized void setDBName(String newDBName)(Code) | | Set a db name for this page - if no DB name is specified, "default" is used.
This name is used to select the context/db used for reading the setup value
ContextPath, which is used to find the path to the stylesheet for this
application
Parameters: newDBName - the new database name |
setTitle | public synchronized void setTitle(String newTitle)(Code) | | Set a new title for this page
Parameters: newTitle - Title for the page |
|
|