|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.utils.HTMLWriter
public final class HTMLWriter
A HTML Writer.
| Constructor Summary | |
|---|---|
HTMLWriter(PrintWriter writer)
Construct a new HTML Writer. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
writeFooter()
Write the footer. |
void |
writeHeader(String title)
Writer an HTML Header. |
void |
writeHx(int h,
String text)
Write a Hx title. |
void |
writeTable(int width,
String borders,
int[] widths,
String[] headers,
Iterable<Iterable<String>> data)
Write a table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLWriter(PrintWriter writer)
writer - The print writer in which we write.| Method Detail |
|---|
public void close()
close in interface Closeablepublic void writeHeader(String title)
title - The title of the page.public void writeFooter()
public void writeHx(int h,
String text)
h - The level of the title.text - The text of the title part.
public void writeTable(int width,
String borders,
int[] widths,
String[] headers,
Iterable<Iterable<String>> data)
width - The width of the table.borders - The border configuration.widths - The widths of the columns.headers - The headers of the table.data - The data of the table.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||