|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.knowcenter.wag.egov.egiz.table.Table
public class Table
This class implements an abstract table definition. The table contains table rows and the table rows contains the table entries. A table can be styled and a relative column width can be set.
Style
,
Entry
,
Serialized FormConstructor Summary | |
---|---|
Table(String name)
The table constructor init by a table name. |
Method Summary | |
---|---|
void |
addRow(String rowNumber,
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()
|
String |
getName()
|
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)
|
String |
toString()
The toString method, used for tests or debugging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Table(String name)
name
- the name for the table.Method Detail |
---|
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 String getName()
public ArrayList getRows()
ArrayList
.
public void addRow(String rowNumber, ArrayList row)
rowNumber
- the row number to store the row entriesrow
- the entry list to storepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |