public class Table
extends java.lang.Object
implements java.io.Serializable
Style
,
Entry
,
Serialized FormConstructor and Description |
---|
Table(java.lang.String name)
The table constructor init by a table name.
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.lang.String rowNumber,
java.util.ArrayList row)
Add a comlete table row to the current table.
|
float[] |
getColsRelativeWith()
The width of the columns are relative to each other.
|
int |
getMaxCols() |
java.lang.String |
getName() |
java.util.ArrayList |
getRows()
This method returns a sorted row list beginning with the row number 1.
|
Style |
getStyle() |
float |
getWidth() |
void |
setColsRelativeWith(float[] cols)
The width of the columns are relative to each other.
|
void |
setStyle(Style style) |
void |
setWidth(float width) |
java.lang.String |
toString()
The toString method, used for tests or debugging.
|
public Table(java.lang.String name)
name
- the name for the table.public float[] getColsRelativeWith()
[1,4]
means the second column is four times wider
than the first column.public void setColsRelativeWith(float[] cols)
[10,90]
means the first colum consumes 10% and the
second column consumes 90% of the table width. public Style getStyle()
public void setStyle(Style style)
style
- The style to set.public float getWidth()
public void setWidth(float width)
width
- The width to set.public int getMaxCols()
public java.lang.String getName()
public java.util.ArrayList getRows()
ArrayList
.public void addRow(java.lang.String rowNumber, java.util.ArrayList row)
rowNumber
- the row number to store the row entriesrow
- the entry list to storepublic java.lang.String toString()
toString
in class java.lang.Object