Package edu.wisc.game.formatter
Class HTMLFmter
java.lang.Object
edu.wisc.game.formatter.Fmter
edu.wisc.game.formatter.HTMLFmter
public class HTMLFmter extends Fmter
Auxiliary class for formatting output as HTML.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description String
a(String url, String text, String extraClauses)
String
br()
String
brHtml()
Generates a BR in HTML mode, and a space otherwise.String
colored(String col, String text)
Builds an HTML FORM element for feedback about a charge, if this formatter is configured to generate them.String
hidden(String name, String value)
String
hr()
String
hrThin()
String
input(String name)
String
input(String name, String value)
String
input(String name, String value, int size)
void
resetFormCnt()
This must be called before the beginning of the document generationString
space(int n)
String
style()
The STYLE or LINK REL=STYLESHEET element for this HTML file, as the case may beString
wrap(String wrap, String text)
String
wrap(String wrap, String extra, String text)
Builds an HTML element with an opening tag (with optional attributes) and a matching closing tag.
-
Field Details
-
Constructor Details
-
Method Details
-
style
The STYLE or LINK REL=STYLESHEET element for this HTML file, as the case may be -
br
-
brHtml
Generates a BR in HTML mode, and a space otherwise. Handy for breaks in table headers. -
hr
-
hrThin
-
space
-
wrap
Builds an HTML element with an opening tag (with optional attributes) and a matching closing tag. -
wrap
-
input
-
input
-
input
-
-
resetFormCnt
public void resetFormCnt()This must be called before the beginning of the document generation -
colored
Builds an HTML FORM element for feedback about a charge, if this formatter is configured to generate them. -
a
-