|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sos.reports.AbstractReport.AbstractElement | +--sos.reports.AbstractReport.AbstractTableElement | +--sos.reports.AbstractReport.DefaultTableElement
A default implementation of TableElement
that stores cells in
lists of lists.
Nested Class Summary | |
class |
AbstractReport.DefaultTableElement.DefaultCellElement
A default implementation of CellElement . |
class |
AbstractReport.DefaultTableElement.DefaultTierElement
A default implementation of TierElement . |
Field Summary |
Fields inherited from interface sos.reports.TableElement |
COLUMN, ROW |
Constructor Summary | |
AbstractReport.DefaultTableElement(java.lang.Object object,
java.lang.String styleName)
Creates an instance of DefaultTableElement with the specified object and style name. |
|
AbstractReport.DefaultTableElement(java.lang.Object object,
java.lang.String styleName,
int numHeaderRows,
int numBodyRows,
int numFooterRows,
int numHeaderColumns,
int numBodyColumns,
int numFooterColumns)
|
Method Summary | |
CellElement |
getCellAt(int rowIndex,
int columnIndex)
Returns the cell 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. |
java.lang.Object |
getObject()
Returns the object (or null , if none) associated with
this report element. |
protected java.lang.String |
getStyleName()
Returns the name of the style that holds this element's visual properties. |
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. |
void |
insertTier(int tierType,
int index,
boolean insertBefore,
java.lang.Object tierObject,
java.lang.String styleName)
|
void |
insertTiers(int tierType,
int index,
boolean insertBefore,
java.util.List objects,
java.util.List styleNames)
|
void |
removeTier(int tierType,
int index)
|
void |
removeTiers(int tierType,
int index,
int numTiersToRemove)
|
AbstractReport.DefaultTableElement.DefaultCellElement |
setCell(int rowIndex,
int columnIndex,
Element cellContentElement,
java.lang.String cellStyleName)
|
AbstractReport.DefaultTableElement.DefaultCellElement |
setCell(int startRowIndex,
int startColumnIndex,
int endRowIndex,
int endColumnIndex,
Element cellElement,
java.lang.String cellStyleName)
|
void |
setFooterTierCount(int tierType,
int count)
|
void |
setHeaderTierCount(int tierType,
int count)
|
void |
setTierPrototype(int tierType,
int index,
Element prototypeElement,
java.lang.String prototypeStyleName)
|
Methods inherited from class sos.reports.AbstractReport.AbstractElement |
fireObjectChanged, getPrototypeObject, getReport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sos.reports.TableElement |
getCells, getCellsEntirelyInRegion, getCellsEntirelyInTier, getCellsInRegion, getCellsInTier, getCellStartingAt |
Methods inherited from interface sos.reports.Element |
getAttributes, getName, getParentElement, getPrototypeObject, getReport, setParentElement |
Constructor Detail |
public AbstractReport.DefaultTableElement(java.lang.Object object, java.lang.String styleName)
object
- object that this table element encapsulates
(may be null
)styleName
- name of the style that holds this table element's
visual properties (may be null
)public AbstractReport.DefaultTableElement(java.lang.Object object, java.lang.String styleName, int numHeaderRows, int numBodyRows, int numFooterRows, int numHeaderColumns, int numBodyColumns, int numFooterColumns)
Method Detail |
public void removeTier(int tierType, int index)
public void removeTiers(int tierType, int index, int numTiersToRemove)
public int getHeaderTierCount(int tierType)
TableElement
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.
getHeaderTierCount
in interface TableElement
getHeaderTierCount
in class AbstractReport.AbstractTableElement
tierType
- type of tier (either ROW
or COLUMN
)
ROW
) or header columns
(if COLUMN
)TableElement.getFooterTierCount(int)
,
TableElement.getTierCount(int)
public int getTierCount(int tierType)
TableElement
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.
getTierCount
in interface TableElement
tierType
- type of tier (either ROW
or COLUMN
)
protected java.lang.String getStyleName()
AbstractReport.AbstractElement
getStyleName
in class AbstractReport.AbstractElement
public int getFooterTierCount(int tierType)
TableElement
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.
getFooterTierCount
in interface TableElement
getFooterTierCount
in class AbstractReport.AbstractTableElement
tierType
- type of tier (either ROW
or COLUMN
)
ROW
) or header columns
(if COLUMN
)TableElement.getHeaderTierCount(int)
,
TableElement.getTierCount(int)
public TierElement getTierAt(int tierType, int index)
TableElement
getTierAt
in interface TableElement
tierType
- type of tier (either ROW
or COLUMN
)index
- index of the tier to be retrieved
null
)public java.lang.Object getObject()
Element
null
, if none) associated with
this report element.
getObject
in interface Element
getObject
in class AbstractReport.AbstractElement
null
)public void insertTier(int tierType, int index, boolean insertBefore, java.lang.Object tierObject, java.lang.String styleName)
public void insertTiers(int tierType, int index, boolean insertBefore, java.util.List objects, java.util.List styleNames)
public void setTierPrototype(int tierType, int index, Element prototypeElement, java.lang.String prototypeStyleName)
public AbstractReport.DefaultTableElement.DefaultCellElement setCell(int rowIndex, int columnIndex, Element cellContentElement, java.lang.String cellStyleName)
java.lang.IndexOutOfBoundsException
- if the number of rows is less than
or equal to rowIndex
; if the number of columns
is less than or equal to columnIndex
public AbstractReport.DefaultTableElement.DefaultCellElement setCell(int startRowIndex, int startColumnIndex, int endRowIndex, int endColumnIndex, Element cellElement, java.lang.String cellStyleName)
public void setFooterTierCount(int tierType, int count)
public void setHeaderTierCount(int tierType, int count)
public CellElement getCellAt(int rowIndex, int columnIndex)
TableElement
getCellAt
in interface TableElement
rowIndex
- row index of cell to fetchcolumnIndex
- column index of cell to fetch
null
if there is no
cell
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |