|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.cmd.CmdTable
A simple class to hold table information. A table has an array of column names and a matrix of rows. The table can also specify if it want to have its borders rendered, which is turned off by default.
CmdWriterImpl| Constructor Summary | |
CmdTable()
|
|
| Method Summary | |
java.lang.String[] |
getColumns()
Get table column names. |
java.lang.String[][] |
getRows()
Get table rows |
boolean |
getUseBorders()
Check if the table should use borders, false by default |
void |
setColumns(java.lang.String[] cols)
Set column names |
void |
setRows(java.lang.String[][] rows)
Set table rows |
void |
setUseBorders(boolean useBorders)
Set if the table should use borders |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmdTable()
| Method Detail |
public java.lang.String[] getColumns()
public void setColumns(java.lang.String[] cols)
cols - Column names, must not be nullpublic void setRows(java.lang.String[][] rows)
rows - Table rows, must not be nullpublic java.lang.String[][] getRows()
public boolean getUseBorders()
public void setUseBorders(boolean useBorders)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||