|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.util.table.TableSerializer
public abstract class TableSerializer
An interface for serializing tables.
The default implementation for each method is to do nothing. Implementations must override methods as required.
Constructor Summary | |
---|---|
protected |
TableSerializer()
Create a new table serializer. |
Method Summary | |
---|---|
void |
addCell(java.lang.String s)
Prints a table cell. |
void |
addColumn(int width)
Defines a column in the table. |
void |
addHeading(java.lang.String s)
Prints a column heading. |
void |
endContent()
Finish printing the table contents. |
void |
endHeader()
Finish printing the column headings. |
void |
endRow()
Finish printing the current row of the table. |
void |
endTable()
Finish printing the table. |
void |
startContent()
Prepare to start printing the table contents. |
void |
startHeader()
Prepare to start printing the column headings. |
void |
startRow()
Prepare to start printing a new row of the table. |
void |
startTable(int height,
int width)
Start a new table having the specified number of rows and columns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TableSerializer()
Method Detail |
---|
public void addCell(java.lang.String s)
s
- The cell contents.public void addColumn(int width)
width
- The width of the column in characters.public void addHeading(java.lang.String s)
s
- The column heading.public void endContent()
public void endHeader()
public void endRow()
public void endTable()
public void startContent()
public void startHeader()
public void startRow()
public void startTable(int height, int width)
height
- The number of rows in the table.width
- The number of columns in the table.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |