sos.reports
Class AbstractReport.DefaultTableElement.DefaultCellElement

java.lang.Object
  |
  +--sos.reports.AbstractReport.AbstractElement
        |
        +--sos.reports.AbstractReport.AbstractCellElement
              |
              +--sos.reports.AbstractReport.DefaultTableElement.DefaultCellElement
All Implemented Interfaces:
CellElement, Element, java.io.Serializable
Enclosing class:
AbstractReport.DefaultTableElement

public class AbstractReport.DefaultTableElement.DefaultCellElement
extends AbstractReport.AbstractCellElement
implements CellElement

A default implementation of CellElement.

Since:
1.0

Constructor Summary
AbstractReport.DefaultTableElement.DefaultCellElement(Element cellContents, int rowStart, int columnStart, int rowEnd, int columnEnd, java.lang.String styleName)
          Creates an instance of DefaultCellElement.
 
Method Summary
 Element getContent()
          Returns the contents of this cell element.
 TierElement getFirstTier(int tierType)
          Returns the first row or column of this cell element.
 TierElement getLastTier(int tierType)
          Returns the last row or column of this cell element.
protected  java.lang.String getStyleName()
          Returns the name of the style that holds this element's visual properties.
 TableElement getTableElement()
          Returns the table element to which this cell belongs.
 
Methods inherited from class sos.reports.AbstractReport.AbstractCellElement
getAttributes, getName, getParentElement, setParentElement
 
Methods inherited from class sos.reports.AbstractReport.AbstractElement
fireObjectChanged, getObject, 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.Element
getAttributes, getName, getObject, getParentElement, getPrototypeObject, getReport, setParentElement
 

Constructor Detail

AbstractReport.DefaultTableElement.DefaultCellElement

public AbstractReport.DefaultTableElement.DefaultCellElement(Element cellContents,
                                                             int rowStart,
                                                             int columnStart,
                                                             int rowEnd,
                                                             int columnEnd,
                                                             java.lang.String styleName)
Creates an instance of DefaultCellElement.

Method Detail

getContent

public Element getContent()
Description copied from interface: CellElement
Returns the contents of this cell element.

Specified by:
getContent in interface CellElement
Returns:
the element contained in this cell element

getStyleName

protected java.lang.String getStyleName()
Description copied from class: AbstractReport.AbstractElement
Returns the name of the style that holds this element's visual properties.

Overrides:
getStyleName in class AbstractReport.AbstractElement
Returns:
this element's style name

getTableElement

public TableElement getTableElement()
Description copied from interface: CellElement
Returns the table element to which this cell belongs.

Specified by:
getTableElement in interface CellElement
Returns:
this cell's table

getLastTier

public TierElement getLastTier(int tierType)
                        throws java.lang.IllegalArgumentException
Description copied from interface: CellElement
Returns the last row or column of this cell element. If the specified type is ROW, the ending row is returned; if COLUMN, the ending column is returned.

Specified by:
getLastTier in interface CellElement
Parameters:
tierType - type of tier (either ROW or COLUMN)
Returns:
the row (if ROW) or column (if COLUMN) at which this cell element ends (may not be null)
Throws:
java.lang.IllegalArgumentException - if tierType is not ROW or COLUMN
See Also:
CellElement.getFirstTier(int)

getFirstTier

public TierElement getFirstTier(int tierType)
Description copied from interface: CellElement
Returns the first row or column of this cell element. If the specified type is ROW, the starting row is returned; if COLUMN, the starting column is returned.

Specified by:
getFirstTier in interface CellElement
Parameters:
tierType - type of tier (either ROW or COLUMN)
Returns:
the row (if ROW) or column (if COLUMN) at which this cell element starts (may not be null)
See Also:
CellElement.getLastTier(int)


Copyright 2003, 2004 Side of Software (SOS). All rights reserved.