|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sos.reports.AbstractReport
A partial implementation of the Report interface.
This class always returns false from isElementEditable and
always throws UnsupportedOperationException in
setObject. Subclasses that wish to allow the editing of elements
should reimplement these methods accordingly.
| Nested Class Summary | |
class |
AbstractReport.AbstractCellElement
A partial implementation of CellElement. |
protected class |
AbstractReport.AbstractElement
A partial implementation of an Element. |
protected class |
AbstractReport.AbstractObjectElement
A partial implementation of ObjectElement. |
protected class |
AbstractReport.AbstractTableElement
A partial implementation of TableElement. |
class |
AbstractReport.AbstractTierElement
A partial implementation of TierElement. |
protected class |
AbstractReport.DefaultObjectElement
A default implementation of ObjectElement. |
protected class |
AbstractReport.DefaultTableElement
A default implementation of TableElement that stores cells in
lists of lists. |
| Constructor Summary | |
|
AbstractReport()
Creates an instance of AbstractReport with an empty theme. |
protected |
AbstractReport(Theme theme)
Creates an instance of AbstractReport with the specified
theme. |
| Method Summary | |
void |
addReportListener(ReportListener listener)
Adds the specified ReportListener to this report. |
protected void |
fireContentChanged(Element element)
Notifies registered listeners that the specified element's object has changed. |
protected void |
fireContentChanged(java.util.Set updatedElements)
Notifies registered listeners that the objects of the elements in the specified set have changed. |
protected void |
fireReportEvent(ReportEvent event)
Notifies registered listeners of the specified event. |
protected void |
fireStyleContextChanged()
Notifies registered listeners that the underlying style context has changed. |
ReportTemplate |
getTemplate()
Returns the report template for which this report was generated, or null if no template was used. |
Theme |
getTheme()
Returns the theme controlling the appearance of this report. |
boolean |
isElementEditable(Element element)
Returns true if this report supports the modification of the specified
report element. |
void |
removeReportListener(ReportListener listener)
Removes the specified ReportListener from this report. |
void |
setObject(Element element,
java.lang.Object object)
Sets the specified element's object to object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface sos.reports.Report |
getRootElement |
| Constructor Detail |
public AbstractReport()
AbstractReport with an empty theme.
AbstractReport(Theme)protected AbstractReport(Theme theme)
AbstractReport with the specified
theme.
theme - this report's theme| Method Detail |
protected void fireReportEvent(ReportEvent event)
event - event describing the change in the reportprotected void fireContentChanged(Element element)
element - whose object has changedfireContentChanged(Set)protected void fireContentChanged(java.util.Set updatedElements)
updatedElements - elements whose objects have changedfireContentChanged(Element)protected void fireStyleContextChanged()
public Theme getTheme()
Report
getTheme in interface Reportpublic ReportTemplate getTemplate()
Reportnull if no template was used.
getTemplate in interface Reportnull)public void addReportListener(ReportListener listener)
ReportReportListener to this report.
addReportListener in interface Reportlistener - object that wishes to be notified when this
report fires a ReportEventpublic void removeReportListener(ReportListener listener)
ReportReportListener from this report.
removeReportListener in interface Reportlistener - object that no longer wishes to be notified when
this report fires a ReportEventpublic boolean isElementEditable(Element element)
Reporttrue if this report supports the modification of the specified
report element.
isElementEditable in interface Reportelement - the report element in question
true if element can be modified;
false otherwise
public void setObject(Element element,
java.lang.Object object)
Reportobject.
setObject in interface Reportelement - the report element to associate with objectobject - the object to associate with element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||