|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.aoindustries.website.framework.WebPageLayout
public abstract class WebPageLayout
A WebPageLayout controls how a WebPage looks while providing a little
isolation from the code that provides the functionality.
| Field Summary | |
|---|---|
static int |
DOWN
Directional references. |
static int |
NONE
Directional references. |
static int |
UP
Directional references. |
static int |
UP_AND_DOWN
Directional references. |
| Constructor Summary | |
|---|---|
WebPageLayout(java.lang.String[] layoutChoices)
|
|
| Method Summary | |
|---|---|
void |
beginLightArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
Begins a lighter colored area of the site. |
abstract void |
beginLightArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out,
java.lang.String width,
boolean nowrap)
Begins a lighter colored area of the site. |
void |
beginWhiteArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
Begins an area with a white background. |
abstract void |
beginWhiteArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse response,
com.aoindustries.io.ChainWriter out,
java.lang.String width,
boolean nowrap)
Begins a lighter colored area of the site. |
void |
endContent(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int contentColumns)
Ends the content area of a page. |
abstract void |
endContent(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int[] contentColumnSpans)
Ends the content area of a page. |
abstract void |
endContentLine(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int rowspan,
boolean endsInternal)
Ends one line of content. |
abstract void |
endHTML(WebPage page,
WebSiteRequest req,
com.aoindustries.io.ChainWriter out)
Writes all of the HTML following the content of the page, whether the page is in a frameset or not. |
abstract void |
endLightArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
Ends a lighter area of the site. |
abstract void |
endWhiteArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
Ends a lighter area of the site. |
int |
getActiveLinkColor(WebSiteRequest req)
The active link color for the page or -1 for browser default. |
int |
getBackgroundColor(WebSiteRequest req)
The background color for the page or -1 for browser default. |
java.lang.String[] |
getLayoutChoices()
Gets the names of every supported layout. |
int |
getLinkColor(WebSiteRequest req)
The link color for the page or -1 for browser default. |
abstract java.lang.String |
getName()
Each layout has a name. |
int |
getTextColor(WebSiteRequest req)
The text color for the page or -1 for browser default. |
int |
getVisitedLinkColor(WebSiteRequest req)
The visited link color for the page or -1 for browser default. |
abstract void |
printContentHorizontalDivider(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int[] colspansAndDirections,
boolean endsInternal)
Prints a horizontal divider of the provided colspan. |
void |
printContentHorizontalDivider(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int colspan,
boolean endsInternal)
Prints a horizontal divider of the provided colspan. |
abstract void |
printContentTitle(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String title,
int contentColumns)
Prints the title of the page in one row in the content area. |
void |
printContentTitle(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
WebPage page,
int contentColumns)
Prints the title of the page in one row in the content area. |
abstract void |
printContentVerticalDivider(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int direction,
int colspan,
int rowspan,
java.lang.String align,
java.lang.String width)
Ends one part of a line and starts the next. |
protected void |
printJavaScriptIncludes(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out,
WebPage page)
|
void |
printSearchOutput(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String query,
boolean isEntireSite,
java.util.List<SearchResult> results,
java.lang.String[] words)
Prints the content HTML that shows the output of a search. |
boolean |
printWebPageLayoutSelector(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
|
abstract void |
startContent(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int[] contentColumnSpans,
int preferredWidth)
Starts the content area of a page. |
void |
startContent(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int contentColumns,
int preferredWidth)
Starts the content area of a page. |
abstract void |
startContentLine(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int colspan,
java.lang.String align,
java.lang.String width)
Starts one line of content with the initial colspan set to the provided colspan. |
abstract void |
startHTML(WebPage page,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out,
java.lang.String onload)
Writes all of the HTML preceeding the content of the page, whether the page is in a frameset or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NONE
public static final int UP
public static final int DOWN
public static final int UP_AND_DOWN
| Constructor Detail |
|---|
public WebPageLayout(java.lang.String[] layoutChoices)
| Method Detail |
|---|
public final java.lang.String[] getLayoutChoices()
public abstract void startHTML(WebPage page,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out,
java.lang.String onload)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void endHTML(WebPage page,
WebSiteRequest req,
com.aoindustries.io.ChainWriter out)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void printSearchOutput(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String query,
boolean isEntireSite,
java.util.List<SearchResult> results,
java.lang.String[] words)
throws java.io.IOException,
java.sql.SQLException
"search_two", with two fields named
"search_query" and "search_target".
java.io.IOException
java.sql.SQLExceptionWebPage.doPostWithSearch(WebSiteRequest,HttpServletResponse)
public final void startContent(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int contentColumns,
int preferredWidth)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void startContent(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int[] contentColumnSpans,
int preferredWidth)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public final void printContentHorizontalDivider(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int colspan,
boolean endsInternal)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void printContentHorizontalDivider(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int[] colspansAndDirections,
boolean endsInternal)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public final void printContentTitle(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
WebPage page,
int contentColumns)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void printContentTitle(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String title,
int contentColumns)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void startContentLine(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int colspan,
java.lang.String align,
java.lang.String width)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void printContentVerticalDivider(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int direction,
int colspan,
int rowspan,
java.lang.String align,
java.lang.String width)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void endContentLine(com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int rowspan,
boolean endsInternal)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public final void endContent(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int contentColumns)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
public abstract void endContent(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
int[] contentColumnSpans)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionpublic int getBackgroundColor(WebSiteRequest req)
-1 for browser default.
public int getTextColor(WebSiteRequest req)
-1 for browser default.
public int getLinkColor(WebSiteRequest req)
-1 for browser default.
public int getVisitedLinkColor(WebSiteRequest req)
-1 for browser default.
public int getActiveLinkColor(WebSiteRequest req)
-1 for browser default.
public final void beginLightArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
throws java.io.IOException
java.io.IOException
public abstract void beginLightArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out,
java.lang.String width,
boolean nowrap)
throws java.io.IOException
java.io.IOException
public abstract void endLightArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
throws java.io.IOException
java.io.IOException
public final void beginWhiteArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
throws java.io.IOException
java.io.IOException
public abstract void beginWhiteArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse response,
com.aoindustries.io.ChainWriter out,
java.lang.String width,
boolean nowrap)
throws java.io.IOException
java.io.IOException
public abstract void endWhiteArea(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out)
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String getName()
public boolean printWebPageLayoutSelector(WebPage page,
com.aoindustries.io.ChainWriter out,
WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
protected void printJavaScriptIncludes(WebSiteRequest req,
javax.servlet.http.HttpServletResponse resp,
com.aoindustries.io.ChainWriter out,
WebPage page)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||