|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etill.framework.archive.HTMLPage
HTMLPage generates HTML language constructs for delivery information to web browsers. The focus is on constructing dynamic web pages from database information (hint) or other forms of personalization. Minimal stylization via abuse of presentation techniques is supported here, in favor of the style sheet technique.
Field Summary | |
---|---|
PrintWriter |
toClient
|
Constructor Summary | |
---|---|
HTMLPage(PrintWriter fromForm)
|
Method Summary | |
---|---|
void |
Base(String baseURL)
Base - specify the URL base to be used for URLs appearing on the page. |
void |
Center()
Center - start a block of centered information |
void |
CheckBox(String name,
String value)
CheckBox - an element within a group of buttons -- ALL with same name -- that allows multiple selections from a list of options) |
void |
CheckBox(String name,
String value,
int selected)
CheckBox - an element within a group of buttons -- ALL with same name -- that allows multiple selections from a list of options). |
void |
CheckBox(String name,
String value,
int selected,
int label)
CheckBox - an element within a group of buttons -- ALL with same name -- that allows multiple selections from a list of options). |
void |
Comment(String comment)
Comment - place a sequence of text on the page as a (invisible) comment |
void |
EndBody()
EndBody - completes the HTML page body block |
void |
EndCenter()
EndCenter - end a block of centered information |
void |
EndForm()
EndForm - signify the end of the form |
void |
EndGlossary()
EndGlossary - close up a GlossaryList |
void |
EndHead()
EndHead - end the HTML HEAD block |
void |
EndList()
EndList - close an open (generic) list |
void |
EndList(String type)
EndList - close an open list of a specified type |
void |
EndMap()
EndMap - end an image map specification |
void |
EndPage()
EndPage - finish an HTML page |
void |
EndSelector()
EndSelector - end a multi-item value selector("menu" type) |
void |
EndTable()
EndTable - signify the end of an open table |
void |
EndTableData()
EndTableData - signal the end of a data element |
void |
EndTableRow()
EndTableRow - signal the end of header/data elements for this row |
void |
GlossaryDescription(String text)
GlossaryDescription - the "value" of an element within a GlossaryList |
void |
GlossaryItem(String item)
GlossaryItem - the "name" of an element within a GlossaryList |
void |
HeadingOne(String head)
HeadingOne - a large section heading |
void |
HeadingThree(String head)
HeadingThree - a mid-sized section heading |
void |
HeadingTwo(String head)
HeadingTwo - a slightly less bold section heading |
void |
HiddenField(String name,
String value)
HiddenField - place a hidden name/value pair in the form |
void |
HorizontalRule()
HorizontalRule - create a horizontal separator on the page |
void |
HorizontalRule(int width,
int thick)
HorizontalRule - create a horizontal separator on the page |
void |
HorizontalRule(int width,
int thick,
String align)
HorizontalRule - create a horizontal separator on the page |
void |
Image(String source,
String alt)
Image - display an image |
void |
Image(String source,
String alt,
int width,
int height)
Image - display an image |
void |
ImageButton(String name,
String value,
String source)
ImageButton - a graphical toggle button |
void |
ImageLink(String source,
String URL)
ImageLink - create a hyper image link |
void |
ImageLink(String source,
String URL,
String align)
ImageLink - create a hyper image link |
void |
ImageLink(String source,
String URL,
String align,
String alt)
ImageLink - create a hyper image link |
void |
ImageMap(String source,
String alt,
int width,
int height,
String mapname)
ImageMap - start display of an image map |
void |
LineBreak()
LineBreak - insert a linebreak between elements in the page |
void |
ListItem(String item)
ListItem - an entry within an open list |
void |
MapArea(String shape,
String coords,
String link)
MapArea - define a hypertext area of an image map |
void |
MapSpec(String mapname)
MapSpec - start an image map specification |
void |
MetaEquiv(String http_equiv,
String content)
MetaEquiv - supplies "meta" information, similar to HTTP MIME header information, about the document |
void |
MetaName(String name,
String content)
MetaName - supplies "meta" information about the HTML document |
void |
NumberField(String name,
int size,
int max)
NumberField - place a numeric-input entry on the page |
void |
NumberField(String name,
int size,
int max,
String predef)
NumberField - place a numeric-input entry on the page |
void |
Paragraph()
Paragraph - insert a paragraph break between elements in the page |
void |
Paragraph(String ptext)
Paragraph - insert a paragraph of text in the page |
void |
PasswordField(String name,
int size,
int max)
PasswordField - place a Password-input entry on the page |
void |
PasswordField(String name,
int size,
int max,
String predef)
PasswordField - place a Password-input entry on the page |
void |
PreFormatted(String ptext)
PreFormatted - insert a body of preformatted text in the page |
void |
PreFormatted(Throwable exception)
PreFormatted - insert an Exception message as preformatted text. |
void |
RadioButton(String name,
String value)
RadioButton - an element with a group of buttons -- ALL with same name -- that allows a single selection from a list of options) |
void |
RadioButton(String name,
String value,
int selected)
RadioButton - an element with a group of buttons -- ALL with same name -- that allows a single selection from a list of options). |
void |
RadioButton(String name,
String value,
int selected,
int label)
RadioButton - an element with a group of buttons -- ALL with same name -- that allows a single selection from a list of options). |
void |
RadioButton(String name,
String value,
String label)
RadioButton - an element with a group of buttons -- ALL with same name -- that allows a single selection from a list of options) |
void |
RadioButton(String name,
String value,
String label,
int selected)
RadioButton - an element with a group of buttons -- ALL with same name -- that allows a single selection from a list of options). |
void |
ResetButton(String name,
String value)
ResetButton - place a RESET-type action button on the page |
void |
Script(String language,
String the_script)
Script - element for including "scripting" code within the document |
void |
SelectorOption(String option)
SelectorOption - specifies one of the choices displayed in a Selector |
void |
SelectorOption(String option,
int selected)
SelectorOption - specifies one of the choices displayed in a Selector This form allows pre-selection of an entry |
void |
SelectorOption(String option,
int selected,
String value)
SelectorOption - specifies one of the choices displayed in a Selector This form allows pre-selection of an entry, and the use of an option "value" different from the option "name" |
void |
StartBody()
StartBody - commence the HTML page body (appears after HTML HEAD) |
void |
StartBody(String bgcolor)
StartBody - commence the HTML page body (appears after HTML HEAD) this version supports selection of the page background color |
void |
StartBody(String bgcolor,
String img_url)
StartBody - commence the HTML page body (appears after HTML HEAD) this version support selection of an image background, or alternative solid color background |
void |
StartForm(String action)
StartForm - begins a "form" This version allows only "POST"-type forms |
void |
StartGlossary()
StartGlossary - commence a Glossary-type list |
void |
StartGlossary(int compact)
StartGlossary - commence a Glossary-type list |
void |
StartHead()
StartHead - commence the HTML HEAD block (must appear before BODY block) |
void |
StartList()
StartList - commence a generic list |
void |
StartList(int compact)
StartList - commence a generic list, opt displayed in compact form |
void |
StartList(String type,
int compact)
StartList - commence a list, opt displayed in compact form |
void |
StartPage()
StartPage - commence generation of a fresh HTML page (req'd at top of document) |
void |
StartSelector(String name)
StartSelector - start a multi-item value selector("menu" type) |
void |
StartSelector(String name,
int size)
StartSelector - start a multi-item value selector("menu" type), with size |
void |
StartSelector(String name,
int size,
int multiple)
StartSelector - start a multi-item value selector("menu" type), with size and option of multi-selection |
void |
StartTable()
StartTable - commence a new HTML table, with default border |
void |
StartTable(int border)
StartTable - commence a new HTML table, specifying border width this version allows selection of the border width |
void |
StartTableRow()
StartTableRow - commence a new row within an open table |
void |
StartTableRow(String align,
String valign)
StartTableRow - commence a new row within an open table, specifying row alignment properties |
void |
Style(String style)
Style - include a CSS1 style sheet |
void |
StyleSheet(String sheet_url)
StyleSheet - give reference to an external CSS1 style sheet |
void |
SubmitButton(String name,
String value)
SubmitButton - place a SUBMIT-type action button in the form |
void |
TableBreak()
TableBreak - insert break in table data |
void |
TableCaption(String cap)
TableCaption - specify a Caption element for an open table |
void |
TableCaption(String cap,
String where)
TableCaption - specify a Caption element for an open table this version allows positional control of the element |
void |
TableData()
TableData - indicate start of a data element within a row Use prior to inserting a FORM element into a row, or when data is produced by another construct. |
void |
TableData(String data)
TableData - specify a data element within a row |
void |
TableData(String data,
String align,
String valign)
TableData - specify a data element within a row, specifying alignment properties |
void |
TableData(String data,
String align,
String valign,
int width)
TableData - specify a data element within a row, specifying alignment properties, and field width |
void |
TableHeader(String header)
TableHeader - specify a "header" element for this row (bold) |
void |
TableHeader(String header,
String align,
String valign)
TableHeader - specify a "header" element for this row (bold), specifying alignment properties |
void |
TableHeader(String header,
String align,
String valign,
int width)
TableHeader - specify a "header" element for this row (bold), specifying alignment properties, and field width |
void |
TableParagraph()
TableParagraph - insert a paragraph break in table data |
void |
TableParagraph(String ptext)
TableParagraph - insert a paragraph of text in table data |
void |
TableText(String ptext)
TableText - insert text in table data |
void |
Text(String text)
Comment - place a sequence of text on the page |
void |
TextField(String name,
int size,
int max)
TextField - place a text-input entry on the page |
void |
TextField(String name,
int size,
int max,
String predef)
TextField - place a text-input entry on the page |
void |
TextLink(String text,
String URL)
TextLink - create a hypertext link |
void |
Title(String title)
Title - specify a title for the HTML page |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public PrintWriter toClient
Constructor Detail |
public HTMLPage(PrintWriter fromForm)
Method Detail |
public void Comment(String comment)
comment
- text of the commentpublic void Text(String text)
comment
- text of the commentpublic void StartPage()
public void EndPage()
public void StartHead()
public void EndHead()
public void StartBody()
public void StartBody(String bgcolor)
bgcolor
- hex-format number specifying page background ("#fffcfc")public void StartBody(String bgcolor, String img_url)
bgcolor
- hex-format number specifying alt background color ("#fffcfc")img_url
- URL pointing to image to use as backgroundpublic void EndBody()
public void Title(String title)
title
- title stringpublic void Base(String baseURL)
baseURL
- the URL to be used as the base reference pointpublic void MetaName(String name, String content)
name
- meta-information namecontent
- meta-information associated with this nameMetaEquiv(java.lang.String, java.lang.String)
public void MetaEquiv(String http_equiv, String content)
http_equiv
- meta-information name, equiv to HTTP header typecontent
- the meta information for this HTTP headerMetaName(java.lang.String, java.lang.String)
public void StyleSheet(String sheet_url)
sheet_url
- location of the style sheetpublic void Style(String style)
style
- the style textpublic void Script(String language, String the_script)
language
- the scripting language of the contained scriptthe_script
- the contained scriptpublic void StartForm(String action)
action
- URL of the CGI program that will handle this formpublic void EndForm()
public void StartTable()
public void StartTable(int border)
border
- border present/not; if present, desired widthpublic void TableCaption(String cap)
cap
- the caption stringpublic void TableCaption(String cap, String where)
cap
- the caption stringwhere
- the location for the caption {top|bottom}public void StartTableRow()
public void StartTableRow(String align, String valign)
align
- the horizontal alignment of elements {left|center|right}valign
- the vertical alignment of elements {top|middle|bottom|baseline}public void TableHeader(String header)
header
- text string for headerpublic void TableHeader(String header, String align, String valign)
header
- text string for headeralign
- the horizontal alignment of elements {left|center|right}valign
- the vertical alignment of elements {top|middle|bottom|baseline}public void TableHeader(String header, String align, String valign, int width)
header
- text string for headeralign
- the horizontal alignment of elements {left|center|right}valign
- the vertical alignment of elements {top|middle|bottom|baseline}width
- width of header within form rowpublic void TableData()
public void TableData(String data)
data
- data for this elementpublic void TableData(String data, String align, String valign)
header
- text string for headeralign
- the horizontal alignment of elements {left|center|right}valign
- the vertical alignment of elements {top|middle|bottom|baseline}public void TableData(String data, String align, String valign, int width)
header
- text string for headeralign
- the horizontal alignment of elements {left|center|right}valign
- the vertical alignment of elements {top|middle|bottom|baseline}width
- the width of the data within the form rowpublic void TableParagraph()
public void TableParagraph(String ptext)
ptext
- the text of the paragraphpublic void TableText(String ptext)
ptext
- the textpublic void TableBreak()
public void EndTableData()
public void EndTableRow()
public void EndTable()
public void StartSelector(String name)
name
- name, within the form, to use for this selectorpublic void StartSelector(String name, int size)
name
- name, within the form, to use for this selectorsize
- the number of items that should show when displayedpublic void StartSelector(String name, int size, int multiple)
name
- name, within the form, to use for this selectorsize
- the number of items that should show when displayedmultiple
- allowmultiple selectionspublic void SelectorOption(String option, int selected, String value)
option
- text string to show as the optionselected
- 0/1 to pre-select an entryvalue
- the value of the optionpublic void SelectorOption(String option)
option
- text string to show as the optionpublic void SelectorOption(String option, int selected)
option
- text string to show as the optionselected
- 0/1 to pre-select an entrypublic void EndSelector()
public void CheckBox(String name, String value)
name
- name to be used, within the form, for this optionvalue
- value for the optionpublic void CheckBox(String name, String value, int selected)
name
- name to be used, within the form, for this optionvalue
- value for the optionselected
- 0/1 if pre-selectedpublic void CheckBox(String name, String value, int selected, int label)
name
- name to be used, within the form, for this optionvalue
- value for the optionselected
- 0/1 if pre-selectedlabel
- 0/1 if label is to be shown aside Boxpublic void ImageButton(String name, String value, String source)
name
- name to be used, within the form, for this optionvalue
- value for the optionsource
- the URL location of the source imagerypublic void RadioButton(String name, String value)
name
- name to be used, within the form, for this optionvalue
- value for the optionpublic void RadioButton(String name, String value, String label)
name
- name to be used, within the form, for this optionvalue
- value for the optionlabel
- lable for the optionpublic void RadioButton(String name, String value, int selected)
name
- name to be used, within the form, for this optionvalue
- value for the optionselected
- 0/1 pre-select an itempublic void RadioButton(String name, String value, String label, int selected)
name
- name to be used, within the form, for this optionvalue
- value for the optionlabel
- value for the optionselected
- 0/1 pre-select an itempublic void RadioButton(String name, String value, int selected, int label)
name
- name to be used, within the form, for this optionvalue
- value for the optionselected
- 0/1 pre-select an itemlabel
- 0/1 if label is to be shown aside Buttonpublic void HiddenField(String name, String value)
name
- name to be used, within the form, for this fieldvalue
- value for the fieldpublic void PasswordField(String name, int size, int max)
name
- name to be used, within the form, for this fieldsize
- width of the input, in charsmax
- the maximum number of characters that can be enteredpublic void PasswordField(String name, int size, int max, String predef)
name
- name to be used, within the form, for this fieldsize
- width of the input, in charsmax
- the maximum number of characters that can be enteredpredef
- a predefined value for the fieldpublic void TextField(String name, int size, int max)
name
- name to be used, within the form, for this fieldsize
- width of the input, in charsmax
- the maximum number of characters that can be enteredpublic void TextField(String name, int size, int max, String predef)
name
- name to be used, within the form, for this fieldsize
- width of the input, in charsmax
- the maximum number of characters that can be enteredpredef
- a predefined value for the fieldpublic void NumberField(String name, int size, int max)
name
- name to be used, within the form, for this fieldsize
- width of the input, in charsmax
- the maximum number of characters that can be enteredpublic void NumberField(String name, int size, int max, String predef)
name
- name to be used, within the form, for this fieldsize
- width of the input, in charsmax
- the maximum number of characters that can be enteredpredef
- a predefined value for the fieldpublic void SubmitButton(String name, String value)
name
- name to be used, within the form, for this fieldvalue
- value for the fieldpublic void ResetButton(String name, String value)
name
- name to be used, within the form, for this fieldvalue
- value for the fieldpublic void StartGlossary()
public void StartGlossary(int compact)
compact
- indicate if this list should be display in compact formpublic void GlossaryItem(String item)
item
- item namepublic void GlossaryDescription(String text)
text
- the description of a GlossaryItempublic void EndGlossary()
public void StartList()
public void StartList(int compact)
compact
- 1|0 display compactpublic void StartList(String type, int compact)
type
- type of list to display {Ordered|Unordered}compact
- 1|0 display compactpublic void ListItem(String item)
item
- text for the list itempublic void EndList()
public void EndList(String type)
type
- type of list to close {Ordered|Unordered}public void TextLink(String text, String URL)
text
- the visible string shownlink
- the link URLpublic void ImageLink(String source, String URL)
image
- the URL of the image sourcelink
- the link URLpublic void ImageLink(String source, String URL, String align)
image
- the URL of the image sourcelink
- the link URLalign
- image alignment (RIGHT, LEFT, CENTER)public void ImageLink(String source, String URL, String align, String alt)
image
- the URL of the image sourcelink
- the link URLalign
- image alignment (RIGHT, LEFT, CENTER)alt
- alternative text to displaypublic void Image(String source, String alt)
source
- the URL location of the imagealt
- the alternative text to displaypublic void Image(String source, String alt, int width, int height)
source
- the URL location of the imagealt
- the alternative text to displaywidth
- sizeheight
- sizepublic void ImageMap(String source, String alt, int width, int height, String mapname)
source
- the URL location of the imagealt
- the alternative text to displaywidth
- sizeheight
- sizemapname
- name of the image map to usepublic void MapSpec(String mapname)
mapname
- name of this mappublic void EndMap()
public void MapArea(String shape, String coords, String link)
shape
- type of areacoords
- coordinates for the arealink
- the URL link for this areapublic void HeadingOne(String head)
head
- string of text to use as headingpublic void HeadingTwo(String head)
head
- string of text to use as headingpublic void HeadingThree(String head)
head
- string of text to use as headingpublic void LineBreak()
public void Center()
public void EndCenter()
public void Paragraph()
public void Paragraph(String ptext)
ptext
- the text of the paragraphpublic void PreFormatted(String ptext)
ptext
- the textpublic void PreFormatted(Throwable exception)
ptext
- the textpublic void HorizontalRule()
public void HorizontalRule(int width, int thick)
width
- width of the rule as percent of pagethick
- thickness of the rulepublic void HorizontalRule(int width, int thick, String align)
width
- width of the rule as percent of pagethick
- thickness of the rulealign
- on of {right|center|left}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |