sos.reports
Class AbstractReport.DefaultTableElement.DefaultTierElement

java.lang.Object
  |
  +--sos.reports.AbstractReport.AbstractElement
        |
        +--sos.reports.AbstractReport.AbstractTierElement
              |
              +--sos.reports.AbstractReport.DefaultTableElement.DefaultTierElement
All Implemented Interfaces:
Element, java.io.Serializable, TierElement
Enclosing class:
AbstractReport.DefaultTableElement

public class AbstractReport.DefaultTableElement.DefaultTierElement
extends AbstractReport.AbstractTierElement
implements TierElement

A default implementation of TierElement.

Since:
1.0

Constructor Summary
AbstractReport.DefaultTableElement.DefaultTierElement(int type, int index, java.lang.Object object, java.lang.String styleName, CellElement prototypeCellElement)
          Creates an instance of DefaultTierElement.
 
Method Summary
 int getIndex()
          Returns the index of this tier in its parent table.
 java.lang.Object getObject()
          Returns the object (or null, if none) associated with this report element.
 CellElement getPrototypeCellElement()
          Returns the prototypical cell element (or null, if none) for this tier.
protected  java.lang.String getStyleName()
          Returns the name of the style that holds this element's visual properties.
 TableElement getTableElement()
          Returns this tier's parent table.
 int getType()
          Returns the type of this tier (either ROW or COLUMN).
protected  void setIndex(int index)
          Sets this tier element's index.
 void setPrototypeCellElement(CellElement prototypeCellElement)
          Sets the prototypical cell element for this tier.
 
Methods inherited from class sos.reports.AbstractReport.AbstractTierElement
getAttributes, getName, getParentElement, isFooter, isHeader, setParentElement
 
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.TierElement
isFooter, isHeader
 
Methods inherited from interface sos.reports.Element
getAttributes, getName, getParentElement, getPrototypeObject, getReport, setParentElement
 

Constructor Detail

AbstractReport.DefaultTableElement.DefaultTierElement

public AbstractReport.DefaultTableElement.DefaultTierElement(int type,
                                                             int index,
                                                             java.lang.Object object,
                                                             java.lang.String styleName,
                                                             CellElement prototypeCellElement)
Creates an instance of DefaultTierElement.

Method Detail

setPrototypeCellElement

public void setPrototypeCellElement(CellElement prototypeCellElement)
Sets the prototypical cell element for this tier.

Parameters:
prototypeCellElement - this tier's prototypical cell element
See Also:
getPrototypeCellElement()

getIndex

public int getIndex()
Description copied from interface: TierElement
Returns the index of this tier in its parent table.

Specified by:
getIndex in interface TierElement
Returns:
this tier's row or column index

getObject

public java.lang.Object getObject()
Description copied from interface: Element
Returns the object (or null, if none) associated with this report element.

Specified by:
getObject in interface Element
Overrides:
getObject in class AbstractReport.AbstractElement
Returns:
the object associated with this report element (may be null)

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: TierElement
Returns this tier's parent table. This method is equivalent to invoking getParentElement and casting the result to TableElement.

Specified by:
getTableElement in interface TierElement
Returns:
ths tier's table (may not be null)

setIndex

protected void setIndex(int index)
Sets this tier element's index.

Parameters:
index - row or column index
See Also:
getIndex()

getType

public int getType()
Description copied from interface: TierElement
Returns the type of this tier (either ROW or COLUMN).

Specified by:
getType in interface TierElement
Returns:
ROW if this tier is a row; COLUMN if it is a column

getPrototypeCellElement

public CellElement getPrototypeCellElement()
Description copied from interface: TierElement
Returns the prototypical cell element (or null, if none) for this tier.

Specified by:
getPrototypeCellElement in interface TierElement
Returns:
this tier's prototypical cell element


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