|
EspressReport v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.Writer
|
+--java.io.PrintWriter
|
+--quadbase.common.param.ParameterPageWriter
|
+--quadbase.common.param.HtmlParameterPageWriter
|
+--quadbase.common.param.CssHtmlParameterPageWriter
Writer that writes ParameterPage in html format with Cascading Style Sheet Objects and Styles embedded. In all cases, an external css style sheet has to be present and will be used for setting the styles of the parameter page. To set the path to the external css style sheet to use, use the method setCssFile(String cssFile).
The styles of each sub-component of a parameter page can be defined using CSS styles. Each sub-component is referenced by a CSS class name as described below
The following is an outline for the parameter page generated including CSS class names:
<head> // generated through the writeHead() method
<link> // points to the location of the style sheet
</head>
<body> // generated through the writeBody() method
<div class="paramTableTitle">
// generated through the writeTableTitle() method
</div>
<form> // generated through the writeBodyBody() method in the superclass
<table class="paramTable">
<td class="paramTableCategory">
// display parameter titles,
</td>
<td class="paramTableValues">
<div class="paramValue_X">
<select class="paramValue_X_value">
// display parameter values or inputbox,
// X represents the index of the parameter
</select>
</div>
</td>
// ... Repeat for each parameter
</table>
<input class="submitButton">
// button to submit the form
<input class="resetButton">
// button to reset the form
</form>
</body>
HtmlParameterPageWriter| Fields inherited from class quadbase.common.param.HtmlParameterPageWriter |
html, serverName, servletDirectory, servletName, servletRunnerPort |
| Fields inherited from class java.io.PrintWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
CssHtmlParameterPageWriter(ParameterPage page,
java.io.Writer out)
Allocates a CssHtmlParameterPageWriter |
|
| Method Summary | |
java.lang.String |
getCssFile()
Gets the path to the css file in use. |
void |
setCssFile(java.lang.String cssFile)
Sets the path to the css file to use. |
void |
writeBody()
Writes the content between the <body> and </body> tags (writes tags as well) of the html parameter page and centers it on the page. |
protected void |
writeBodyFooter()
writes the conclusion/footer component (the String footer that is set using ParameterPage.setFooter()) of the contents inside the <body> and </body> tags of the html parameter page |
protected void |
writeBodyHeader()
writes the preface/header component (the String header that is set using ParameterPage.setHeader()) of the contents inside the <body> and </body> tags of the html parameter page |
protected void |
writeFormButtons()
writes the form buttons (submit and reset) |
void |
writeHead()
Writes only the content between the <head> and </head> tags of the parameter page. |
protected void |
writeParamName(java.lang.String paramName)
writes a parameter name component inside the parameter table. |
protected void |
writeParamTableCategory(java.lang.String paramName,
java.lang.String tdAttributes)
writes a parameter table category component inside the parameter table enclosed in <TD> and </TD> tags. |
protected void |
writeParamTableOpenTag()
writes the <TABLE> tag for the parameter table |
protected void |
writeParamTableValue(java.lang.String name,
java.lang.String value,
java.lang.String tdAttributes)
writes a parameter table value component inside the parameter table enclosed in <TD> and </TD> tags. |
protected void |
writeParamTableValues(java.lang.String name,
java.lang.String selectAttributes,
java.util.Vector values,
java.lang.String paramValue,
java.lang.String tdAttributes)
writes a parameter table values component inside the parameter table enclosed in <TD> and </TD> tags. |
protected void |
writeParamValue(java.lang.String name,
java.lang.String value)
writes a parameter value component. |
protected void |
writeParamValueDate(java.lang.String name,
java.lang.String value,
Param param)
writes the parameter value component. |
protected void |
writeParamValues(java.lang.String name,
java.lang.String attributes,
java.util.Vector values,
java.lang.String paramValue)
writes a parameter values component. |
protected void |
writeResetButton()
writes the reset button |
protected void |
writeSubmitButton()
writes the submit button |
void |
writeTableTitle()
Writes the title of the parameter table |
| Methods inherited from class quadbase.common.param.ParameterPageWriter |
refresh |
| Methods inherited from class java.io.PrintWriter |
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CssHtmlParameterPageWriter(ParameterPage page,
java.io.Writer out)
page - the ParameterPage to writeout - the output to write to| Method Detail |
public void setCssFile(java.lang.String cssFile)
cssFile - the path to the external css style sheetpublic java.lang.String getCssFile()
public void writeHead()
writeHead in class HtmlParameterPageWriter
public void writeBody()
throws java.io.IOException
writeBody in class HtmlParameterPageWriterpublic void writeTableTitle()
writeTableTitle in class HtmlParameterPageWriter
protected void writeBodyHeader()
throws java.io.IOException
HtmlParameterPageWriterwriteBodyHeader in class HtmlParameterPageWriter
protected void writeBodyFooter()
throws java.io.IOException
HtmlParameterPageWriterwriteBodyFooter in class HtmlParameterPageWriterprotected void writeParamTableOpenTag()
HtmlParameterPageWriterwriteParamTableOpenTag in class HtmlParameterPageWriter
protected void writeParamTableCategory(java.lang.String paramName,
java.lang.String tdAttributes)
HtmlParameterPageWriterwriteParamTableCategory in class HtmlParameterPageWriterquadbase.common.param.HtmlParameterPageWriterparamName - the name of the parametertdAttributes - the attributes for the <TD> tagprotected void writeParamName(java.lang.String paramName)
HtmlParameterPageWriterwriteParamName in class HtmlParameterPageWriterquadbase.common.param.HtmlParameterPageWriterparamName - the name of the parameter
protected void writeParamTableValues(java.lang.String name,
java.lang.String selectAttributes,
java.util.Vector values,
java.lang.String paramValue,
java.lang.String tdAttributes)
HtmlParameterPageWriterwriteParamTableValues in class HtmlParameterPageWriterquadbase.common.param.HtmlParameterPageWritername - the name of the INPUT elementselectAttributes - the attributes for the selection listvalues - the list of possible values that the parameter can takeparamValue - the selected parameter valuetdAttributes - the attributes for the <TD> tag
protected void writeParamTableValue(java.lang.String name,
java.lang.String value,
java.lang.String tdAttributes)
HtmlParameterPageWriterwriteParamTableValue in class HtmlParameterPageWriterquadbase.common.param.HtmlParameterPageWritername - the name of the INPUT elementvalue - the default value of the text boxtdAttributes - the attributes for the <TD> tag
protected void writeParamValue(java.lang.String name,
java.lang.String value)
HtmlParameterPageWriterwriteParamValue in class HtmlParameterPageWriterquadbase.common.param.HtmlParameterPageWritername - the name of the INPUT elementvalue - the default value of the text box
protected void writeParamValueDate(java.lang.String name,
java.lang.String value,
Param param)
HtmlParameterPageWriterwriteParamValueDate in class HtmlParameterPageWriterquadbase.common.param.HtmlParameterPageWritername - the name of the INPUT elementvalue - the default value of the text boxparam - the parameter that holds information about custom date format if applicable.
protected void writeParamValues(java.lang.String name,
java.lang.String attributes,
java.util.Vector values,
java.lang.String paramValue)
HtmlParameterPageWriterwriteParamValues in class HtmlParameterPageWriterquadbase.common.param.HtmlParameterPageWritername - the name of the SELECT elementattributes - the String of attributes to be included in the SELECT element
(ex. <SELECT attributes></SELECT>values - a vector of values to be included in the options of the select listparamValue - the value to be selected, if it exists in the VALUES argumentprotected void writeFormButtons()
HtmlParameterPageWriterwriteFormButtons in class HtmlParameterPageWriterprotected void writeSubmitButton()
HtmlParameterPageWriterwriteSubmitButton in class HtmlParameterPageWriterprotected void writeResetButton()
HtmlParameterPageWriterwriteResetButton in class HtmlParameterPageWriter
|
EspressReport v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||