|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A portion of a report organized into rows and columns.
A table element consists of rows, columns, and cells. Cells can span one or more rows and columns. Currently, only one cell is allowed to exist at the intersection of a row and a column, but this may be relaxed in the future.
The word "tier" is used to refer to either a row or a column. Some tiers may be designated as header tiers. Header tiers must be the first tiers in the table. Similarly, some tiers may be designated as footer tiers. Footer tiers must be the last tiers in the table.
CellElement,
TierElement| Field Summary | |
static int |
COLUMN
A constant that indicates the column direction. |
static int |
ROW
A constant that indicates the row direction. |
| Method Summary | |
CellElement |
getCellAt(int rowIndex,
int columnIndex)
Returns the cell at the specified location. |
java.util.Set |
getCells()
Returns all cells belonging to this table element. |
java.util.Set |
getCellsEntirelyInRegion(int firstRowIndex,
int firstColumnIndex,
int lastRowIndex,
int lastColumnIndex)
Returns the cells that fall entirely within the specified region. |
java.util.Set |
getCellsEntirelyInTier(int tierType,
int index)
Returns the set of cells entirely in the specified row or column. |
java.util.Set |
getCellsInRegion(int firstRowIndex,
int firstColumnIndex,
int lastRowIndex,
int lastColumnIndex)
Returns the cells that fall within the specified region. |
java.util.Set |
getCellsInTier(int tierType,
int index)
Returns the set of cells in the specified row or column. |
CellElement |
getCellStartingAt(int rowIndex,
int columnIndex)
Returns the cell that starts at the specified location. |
int |
getFooterTierCount(int tierType)
Returns the number of footer rows or footer columns in this table element. |
int |
getHeaderTierCount(int tierType)
Returns the number of header rows or header columns in this table element. |
TierElement |
getTierAt(int tierType,
int index)
Returns the tier row or column representing the specified index. |
int |
getTierCount(int tierType)
Returns the total number of rows or columns. |
| Methods inherited from interface sos.reports.Element |
getAttributes, getName, getObject, getParentElement, getPrototypeObject, getReport, setParentElement |
| Field Detail |
public static final int ROW
COLUMN,
Constant Field Valuespublic static final int COLUMN
ROW,
Constant Field Values| Method Detail |
public java.util.Set getCells()
public java.util.Set getCellsInRegion(int firstRowIndex,
int firstColumnIndex,
int lastRowIndex,
int lastColumnIndex)
throws java.lang.IndexOutOfBoundsException
firstRowIndex - index of the first row of the regionfirstColumnIndex - index of the first column of the regionlastRowIndex - index of the last row of the region (inclusive)lastColumnIndex - index of the last column of the region (inclusive)
java.lang.IndexOutOfBoundsException - if any index is negative, if an
end index is less than its corresponding start index,
or if an end index is greater than or equal to the number of
corresponding tiers in this tablegetCellsEntirelyInRegion(int, int, int, int)
public java.util.Set getCellsEntirelyInRegion(int firstRowIndex,
int firstColumnIndex,
int lastRowIndex,
int lastColumnIndex)
throws java.lang.IndexOutOfBoundsException
firstRowIndex - index of the first row of the regionfirstColumnIndex - index of the first column of the regionlastRowIndex - index of the last row of the region (inclusive)lastColumnIndex - index of the last column of the region (inclusive)
java.lang.IndexOutOfBoundsException - if any index is negative, if an
end index is less than its corresponding start index,
or if an end index is greater than or equal to the number of
tiers in this table elementgetCellsInRegion(int, int, int, int)
public java.util.Set getCellsEntirelyInTier(int tierType,
int index)
throws java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
tierType - type of tier (either ROW or COLUMN)index - index of row or column to fetch
java.lang.IllegalArgumentException - if tierType is not
ROW or COLUMN;
java.lang.IndexOutOfBoundsException - if index is negative or greater
than or equal to the number of tiers in this table elementgetCellsInTier(int, int)
public java.util.Set getCellsInTier(int tierType,
int index)
throws java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
tierType - type of tier (either ROW or COLUMN)index - index of row or column to fetch
java.lang.IllegalArgumentException - if tierType is not
ROW or COLUMN;
java.lang.IndexOutOfBoundsException - if index is negative or greater
than or equal to the number of tiers in this table elementgetCellsEntirelyInTier(int, int)
public CellElement getCellAt(int rowIndex,
int columnIndex)
throws java.lang.IndexOutOfBoundsException
rowIndex - row index of cell to fetchcolumnIndex - column index of cell to fetch
null if there is no
cell
java.lang.IndexOutOfBoundsException - if either index is negative
or greater than or equal to the number of tiers
in this table element
public CellElement getCellStartingAt(int rowIndex,
int columnIndex)
throws java.lang.IndexOutOfBoundsException
rowIndex - row index of cell to fetchcolumnIndex - column index of cell to fetch
null if there is no
cell
java.lang.IndexOutOfBoundsException - if either index is negative
or greater than or equal to the number of tiers
in this table element
public int getHeaderTierCount(int tierType)
throws java.lang.IllegalArgumentException
ROW, the number of header rows is given;
if COLUMN, the number of header columns is given. The returned count
may be zero and must be less than the toal number of tiers.
tierType - type of tier (either ROW or COLUMN)
ROW) or header columns
(if COLUMN)
java.lang.IllegalArgumentException - if tierType is not
ROW or COLUMNgetFooterTierCount(int),
getTierCount(int)
public int getTierCount(int tierType)
throws java.lang.IllegalArgumentException
tierType is ROW, the row count is given; if tierType is
COLUMN, the column count is given. The returned count includes
header and footer tiers.
tierType - type of tier (either ROW or COLUMN)
java.lang.IllegalArgumentException - if tierType is not
ROW or COLUMN
public TierElement getTierAt(int tierType,
int index)
throws java.lang.IllegalArgumentException,
java.lang.IndexOutOfBoundsException
tierType - type of tier (either ROW or COLUMN)index - index of the tier to be retrieved
null)
java.lang.IllegalArgumentException - if tierType is not
ROW or COLUMN
java.lang.IndexOutOfBoundsException - if index < 0;
or if index is greater than or equal to the total number
of tiers in this table element
public int getFooterTierCount(int tierType)
throws java.lang.IllegalArgumentException
ROW, the number of footer rows is given;
if COLUMN, the number of footer columns is given. The returned count
may be zero and must be less than the toal number of tiers.
tierType - type of tier (either ROW or COLUMN)
ROW) or header columns
(if COLUMN)
java.lang.IllegalArgumentException - if tierType is not
ROW or COLUMNgetHeaderTierCount(int),
getTierCount(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||