sos.reports
Class AbstractReport.AbstractElement

java.lang.Object
  |
  +--sos.reports.AbstractReport.AbstractElement
All Implemented Interfaces:
Element, java.io.Serializable
Direct Known Subclasses:
AbstractReport.AbstractCellElement, AbstractReport.AbstractObjectElement, AbstractReport.AbstractTableElement, AbstractReport.AbstractTierElement
Enclosing class:
AbstractReport

protected abstract class AbstractReport.AbstractElement
extends java.lang.Object
implements Element, java.io.Serializable

A partial implementation of an Element.

Since:
1.0

Constructor Summary
protected AbstractReport.AbstractElement()
           
 
Method Summary
protected  void fireObjectChanged(java.lang.Object oldObject, java.lang.Object newObject)
          Causes the enclosing report to send an event signalling that this element's object has changed.
 javax.swing.text.AttributeSet getAttributes()
          Returns the set of attributes describing this report element.
 java.lang.Object getObject()
          Returns the object (or null, if none) associated with this report element.
 java.lang.Object getPrototypeObject()
          Returns this element's sample object.
 Report getReport()
          Returns the report to which this element belongs.
protected  java.lang.String getStyleName()
          Returns the name of the style that holds this element's visual properties.
 
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
getName, getParentElement, setParentElement
 

Constructor Detail

AbstractReport.AbstractElement

protected AbstractReport.AbstractElement()
Method Detail

getAttributes

public javax.swing.text.AttributeSet getAttributes()
Description copied from interface: Element
Returns the set of attributes describing this report element.

Specified by:
getAttributes in interface Element
Returns:
the set of attributes describing this report element (may not be null)

fireObjectChanged

protected void fireObjectChanged(java.lang.Object oldObject,
                                 java.lang.Object newObject)
Causes the enclosing report to send an event signalling that this element's object has changed.

Parameters:
oldObject - the old object
newObject - the new object

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
Returns:
the object associated with this report element (may be null)

getPrototypeObject

public java.lang.Object getPrototypeObject()
Description copied from interface: Element
Returns this element's sample object. The returned object may be used by views, for example, to calculate minimum and preferred sizes when this element's underlying object is null.

Specified by:
getPrototypeObject in interface Element
Returns:
a prototype (may be null)
See Also:
Element.getObject()

getReport

public Report getReport()
Description copied from interface: Element
Returns the report to which this element belongs.

Specified by:
getReport in interface Element
Returns:
the report overseeing this element

getStyleName

protected java.lang.String getStyleName()
Returns the name of the style that holds this element's visual properties.

Returns:
this element's style name


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