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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringa(String url, String text, String extraClauses)Stringbr()StringbrHtml()Generates a BR in HTML mode, and a space otherwise.Stringcolored(String col, String text)Builds an HTML FORM element for feedback about a charge, if this formatter is configured to generate them.Stringhidden(String name, String value)Stringhr()StringhrThin()Stringinput(String name)Stringinput(String name, String value)Stringinput(String name, String value, int size)Stringinput2(String name, String extra)voidresetFormCnt()This must be called before the beginning of the document generationStringspace(int n)Stringstyle()The STYLE or LINK REL=STYLESHEET element for this HTML file, as the case may beStringstyle(String cssUrl)A LINK REL=STYLESHEET elementStringtitle(String s)Stringwrap(String wrap, String text)Stringwrap(String wrap, String extra, String text)Builds an HTML element with an opening tag (with optional attributes) and a matching closing tag.
-
-
-
Field Detail
-
htmlFmter
public static HTMLFmter htmlFmter
-
-
Method Detail
-
style
public String style()
The STYLE or LINK REL=STYLESHEET element for this HTML file, as the case may be
-
brHtml
public String brHtml()
Generates a BR in HTML mode, and a space otherwise. Handy for breaks in table headers.
-
wrap
public String wrap(String wrap, String extra, String text)
Builds an HTML element with an opening tag (with optional attributes) and a matching closing tag.
-
resetFormCnt
public void resetFormCnt()
This must be called before the beginning of the document generation
-
colored
public String colored(String col, String text)
Builds an HTML FORM element for feedback about a charge, if this formatter is configured to generate them.
-
-