net.larsan.urd.cmd
Class CmdTable

java.lang.Object
  |
  +--net.larsan.urd.cmd.CmdTable

public class CmdTable
extends java.lang.Object

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.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
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

CmdTable

public CmdTable()
Method Detail

getColumns

public java.lang.String[] getColumns()
Get table column names.

Returns:
Column names, may return null

setColumns

public void setColumns(java.lang.String[] cols)
Set column names

Parameters:
cols - Column names, must not be null

setRows

public void setRows(java.lang.String[][] rows)
Set table rows

Parameters:
rows - Table rows, must not be null

getRows

public java.lang.String[][] getRows()
Get table rows

Returns:
Table rows, may return null

getUseBorders

public boolean getUseBorders()
Check if the table should use borders, false by default


setUseBorders

public void setUseBorders(boolean useBorders)
Set if the table should use borders