public class ReplayReporter extends java.lang.Object implements IReporter, IReporterSupport
IReporter that may be used to intercept the reporting information
and "replay" them later on on another IReporter instance.
This is useful if an object receiving reporting information may be dynamically multiplexed on many reporting events emitting instances, for example a window showing a currently active object.
STYLE_BEEP, STYLE_NONE, STYLE_STANDALONE| Constructor and Description |
|---|
ReplayReporter(java.lang.Object owner) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMessage(ReportMessage message) |
void |
addReporter(IReporter reporter) |
java.lang.Object |
getOwner() |
void |
removeReporter(IReporter reporter) |
protected void |
replay(IReporter reporter) |
void |
reportActivityEnd()
Indicate the end of an activity.
|
void |
reportActivityStart(java.lang.String activity,
int style)
Indicate the beginning of an activity, possibly blocking system
interaction.
|
void |
reportError(java.lang.String title,
java.lang.String message,
java.lang.Throwable t,
int style)
Indicate an error condition.
|
void |
reportMessage(java.lang.String title,
java.lang.String message,
int style)
Report a message to the user.
|
void |
reportProgress(java.lang.String message,
int percent,
int style)
Indicate the progress of an ongoing activity.
|
void |
reportStatus(java.lang.String message,
int style)
Report a simple state information.
|
protected void addMessage(ReportMessage message)
public void addReporter(IReporter reporter)
addReporter in interface IReporterSupportpublic java.lang.Object getOwner()
public void removeReporter(IReporter reporter)
removeReporter in interface IReporterSupportprotected void replay(IReporter reporter)
public void reportActivityEnd()
IReporterreportActivityEnd in interface IReporterpublic void reportActivityStart(java.lang.String activity,
int style)
IReporterreportActivityStart in interface IReporteractivity - A label for reporting the activity.public void reportError(java.lang.String title,
java.lang.String message,
java.lang.Throwable t,
int style)
IReporterreportError in interface IReporterpublic void reportMessage(java.lang.String title,
java.lang.String message,
int style)
IReporterreportMessage in interface IReporterpublic void reportProgress(java.lang.String message,
int percent,
int style)
IReporterreportProgress in interface IReporterpublic void reportStatus(java.lang.String message,
int style)
IReporterreportStatus in interface IReporter