LwgCell
is a LwgRectangle
containing other Element
s. A LwgCell
must be added to a Table
. The Table
will place the LwgCell
in a Row
.
Example:
@see LwgRectangle @see Element @see Table @see RowTable table = new Table(3); table.setBorderWidth(1); table.setBorderColor(new Color(0, 0, 255)); table.setCellpadding(5); table.setCellspacing(5); LwgCell cell = new LwgCell("header"); cell.setHeader(true); cell.setColspan(3); table.addCell(cell); cell = new LwgCell("example cell with colspan 1 and rowspan 2"); cell.setRowspan(2); cell.setBorderColor(new Color(255, 0, 0)); table.addCell(cell); table.addCell("1.1"); table.addCell("2.1"); table.addCell("1.2"); table.addCell("2.2");
|
|