|
||||||||||
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
A partial implementation of TableElement
.
Subclasses must implement the following methods: getTierCount getCellAt getTierElement If it supports header and footer rows and columns subclasses should reimplement: getFooterTierCount getHeaderTierCount
Field Summary |
Fields inherited from interface sos.reports.TableElement |
COLUMN, ROW |
Constructor Summary | |
protected |
AbstractReport.AbstractTableElement()
|
Method Summary | |
protected void |
fireCellsAdded(java.util.List cells)
Notifies its registered listeners that a number of cells have beed added. |
protected void |
fireCellsChanged(java.util.Set cells)
Notifies its registered listeners that a number of cells have beed resized. |
protected void |
fireCellsRemoved(java.util.Set cells)
Notifies its registered listeners that a number of cells have beed removed. |
void |
fireContentChanged(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
Notifies its registered listeners that some or all of the content in the specified region has changed. |
protected void |
fireTableStructureChanged()
Notifies its registered listeners that this table's structure has drastically changed. |
protected void |
fireTiersAdded(int tierType,
int firstTier,
int lastTier)
Notifies its registered listeners that a range of tiers has been added. |
protected void |
fireTiersRemoved(int tierType,
int firstTier,
int lastTier)
Notifies its registered listeners that a range of tiers has been removed. |
javax.swing.text.AttributeSet |
getAttributes()
Returns the set of attributes describing this report element. |
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. |
java.lang.String |
getName()
Returns the name of this report element. |
Element |
getParentElement()
Returns this element's parent. |
boolean |
getValueIsAdjusting()
Returns true if this table element is currently undergoing a series
of changes. |
void |
setParentElement(Element parent)
Sets this element's parent. |
void |
setValueIsAdjusting(boolean isAdjusting)
Sets whether or not this table element is undergoing a series of changes. |
Methods inherited from class sos.reports.AbstractReport.AbstractElement |
fireObjectChanged, getObject, getPrototypeObject, getReport, getStyleName |
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 |
getCellAt, getTierAt, getTierCount |
Methods inherited from interface sos.reports.Element |
getObject, getPrototypeObject, getReport |
Constructor Detail |
protected AbstractReport.AbstractTableElement()
Method Detail |
public boolean getValueIsAdjusting()
true
if this table element is currently undergoing a series
of changes.
true
if this table element is currently undergoing a series
of changessetValueIsAdjusting(boolean)
public void setValueIsAdjusting(boolean isAdjusting)
isAdjusting
- true if this table element is undergoing a series
of changesgetValueIsAdjusting()
protected void fireTableStructureChanged()
protected void fireTiersAdded(int tierType, int firstTier, int lastTier)
tierType
- either ROW or COLUMNfirstTier
- index of first new tierlastTier
- index of last new tier (inclusive)protected void fireTiersRemoved(int tierType, int firstTier, int lastTier)
tierType
- either ROW or COLUMNfirstTier
- index of first tier removedlastTier
- index of last tier removed (inclusive)protected void fireCellsAdded(java.util.List cells)
cells
- new cellsprotected void fireCellsRemoved(java.util.Set cells)
cells
- cells that were removedprotected void fireCellsChanged(java.util.Set cells)
cells
- modified cellspublic void fireContentChanged(int firstRow, int firstColumn, int lastRow, int lastColumn)
firstRow
- index of first row of regionfirstColumn
- index of first column of regionlastRow
- index of last row of region (inclusive)lastColumn
- index of last column of region (inclusive)public javax.swing.text.AttributeSet getAttributes()
Element
getAttributes
in interface Element
getAttributes
in class AbstractReport.AbstractElement
null
)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
tierType
- type of tier (either ROW
or COLUMN
)
ROW
) or header columns
(if COLUMN
)TableElement.getFooterTierCount(int)
,
TableElement.getTierCount(int)
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
tierType
- type of tier (either ROW
or COLUMN
)
ROW
) or header columns
(if COLUMN
)TableElement.getHeaderTierCount(int)
,
TableElement.getTierCount(int)
public java.lang.String getName()
Element
getName
in interface Element
public Element getParentElement()
Element
getParentElement
in interface Element
null
)public void setParentElement(Element parent)
Element
setParentElement
in interface Element
parent
- parent elementElement.getParentElement()
public CellElement getCellStartingAt(int rowIndex, int columnIndex)
TableElement
getCellStartingAt
in interface TableElement
rowIndex
- row index of cell to fetchcolumnIndex
- column index of cell to fetch
null
if there is no
cellpublic java.util.Set getCells()
TableElement
getCells
in interface TableElement
public java.util.Set getCellsInRegion(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex)
TableElement
getCellsInRegion
in interface TableElement
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)
TableElement.getCellsEntirelyInRegion(int, int, int, int)
public java.util.Set getCellsEntirelyInRegion(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex)
TableElement
getCellsEntirelyInRegion
in interface TableElement
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)
TableElement.getCellsInRegion(int, int, int, int)
public java.util.Set getCellsEntirelyInTier(int tierType, int index)
TableElement
getCellsEntirelyInTier
in interface TableElement
tierType
- type of tier (either ROW
or COLUMN
)index
- index of row or column to fetch
TableElement.getCellsInTier(int, int)
public java.util.Set getCellsInTier(int tierType, int index)
TableElement
getCellsInTier
in interface TableElement
tierType
- type of tier (either ROW
or COLUMN
)index
- index of row or column to fetch
TableElement.getCellsEntirelyInTier(int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |