|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sos.reports.DefaultReportEvent
An implementation of ReportEvent
. It uses a map to store
the elements' changes.
Nested Class Summary | |
static class |
DefaultReportEvent.DefaultElementChange
An implementation of ReportEvent.ElementChange . |
Nested classes inherited from class sos.reports.ReportEvent |
|
Constructor Summary | |
DefaultReportEvent(Report report,
Element sourceElement,
ReportEvent.ElementChange change)
Creates an instance of DefaultReportEvent where
the specified report is the source and there
is a single change to the specified element. |
|
DefaultReportEvent(Report report,
java.util.Map changes)
Creates an instance of DefaultReportEvent where
the specified report is the source and the specified
map holds the elements' changes. |
|
DefaultReportEvent(Report report,
java.util.Set sourceElements,
ReportEvent.ElementChange change)
Creates an instance of DefaultReportEvent where
the specified report is the source and there
is a single change--the same to all elements in the specified set. |
Method Summary | |
ReportEvent.ElementChange |
getChange(Element element)
Returns the details of how the specified element changed. |
Report |
getReport()
Returns the report to which this event applies. |
java.util.Set |
getSourceElements()
Returns the set of report elements for which this event applies. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultReportEvent(Report report, java.util.Map changes)
DefaultReportEvent
where
the specified report is the source and the specified
map holds the elements' changes.
report
- source of the eventchanges
- mapping from Element
to ElementChange
public DefaultReportEvent(Report report, Element sourceElement, ReportEvent.ElementChange change)
DefaultReportEvent
where
the specified report is the source and there
is a single change to the specified element.
report
- source of the eventsourceElement
- the only element that changedchange
- the change to sourceElement
public DefaultReportEvent(Report report, java.util.Set sourceElements, ReportEvent.ElementChange change)
DefaultReportEvent
where
the specified report is the source and there
is a single change--the same to all elements in the specified set.
report
- source of the eventsourceElements
- the elements that changedchange
- the change to each element in sourceElements
Method Detail |
public Report getReport()
ReportEvent
getReport
in interface ReportEvent
public java.util.Set getSourceElements()
ReportEvent
getSourceElements
in interface ReportEvent
public ReportEvent.ElementChange getChange(Element element)
ReportEvent
getChange
in interface ReportEvent
element
- element for which to fetch the change
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |