|
||||||||||
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 themeMethod 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 Report
public ReportTemplate getTemplate()
Report
null
if no template was used.
getTemplate
in interface Report
null
)public void addReportListener(ReportListener listener)
Report
ReportListener
to this report.
addReportListener
in interface Report
listener
- object that wishes to be notified when this
report fires a ReportEvent
public void removeReportListener(ReportListener listener)
Report
ReportListener
from this report.
removeReportListener
in interface Report
listener
- object that no longer wishes to be notified when
this report fires a ReportEvent
public boolean isElementEditable(Element element)
Report
true
if this report supports the modification of the specified
report element.
isElementEditable
in interface Report
element
- the report element in question
true
if element
can be modified;
false
otherwisepublic void setObject(Element element, java.lang.Object object)
Report
object
.
setObject
in interface Report
element
- the report element to associate with object
object
- the object to associate with element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |