public class LayoutTableModel
extends java.lang.Object
Constructor and Description |
---|
LayoutTableModel(TableHandle table)
Constructs a
LayoutTableModel with the given table
element. |
Modifier and Type | Method and Description |
---|---|
CellHandle |
getCell(int rowPosn,
int colPosn)
Returns the cell at the given position.
|
CellHandle |
getCell(int slotId,
int rowId,
int colId)
Return a cell element with the given poistion.
|
CellHandle |
getCell(int groupLevel,
int slotId,
int rowId,
int colId)
Return a cell element with the given poistion.
|
int |
getColumnCount()
Returns the column count in the table.
|
LayoutGroup |
getLayoutGroup(int groupLevel)
Returns the layout group with the given group level.
|
LayoutSlot |
getLayoutSlotDetail()
Returns the detail slot.
|
LayoutSlot |
getLayoutSlotFooter()
Returns the footer slot.
|
LayoutSlot |
getLayoutSlotHeader()
Returns the header slot.
|
int |
getRowCount()
Returns the column count in the table.
|
TableHandle |
getTable()
Returns the table to which the layout model belongs.
|
public LayoutTableModel(TableHandle table)
LayoutTableModel
with the given table
element.table
- the handle of the table elementpublic LayoutSlot getLayoutSlotHeader()
public LayoutSlot getLayoutSlotDetail()
public LayoutSlot getLayoutSlotFooter()
public TableHandle getTable()
public LayoutGroup getLayoutGroup(int groupLevel)
groupLevel
- the 1-based group levelpublic int getColumnCount()
public int getRowCount()
public CellHandle getCell(int slotId, int rowId, int colId)
slotId
- the slot index,rowId
- the 1-based row indexcolId
- the 1-based column indexnull
.public CellHandle getCell(int groupLevel, int slotId, int rowId, int colId)
groupLevel
- the 1-based group levelslotId
- the slot index,rowId
- the 1-based row indexcolId
- the 1-based column indexnull
.public CellHandle getCell(int rowPosn, int colPosn)
CellHandle
is an element that
occupies the given position in the layout rendering.
For example, if a cell occupies the position (1, 1) and (1, 2), return
CellHandle
s with parameters (1, 1) and (1, 2) are same.
rowPosn
- the 1-based row positioncolPosn
- the 1-based column positionCopyright © 2008 Actuate Corp. All rights reserved.