public class ReplayReporter extends 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(Object owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReporter(IReporter reporter) |
Object |
getOwner() |
void |
removeReporter(IReporter reporter) |
void |
reportActivityEnd()
Indicate the end of an activity.
|
void |
reportActivityStart(String activity,
int style)
Indicate the beginning of an activity, possibly blocking system
interaction.
|
void |
reportError(String title,
String message,
Throwable t,
int style)
Indicate an error condition.
|
void |
reportMessage(String title,
String message,
int style)
Report a message to the user.
|
void |
reportProgress(String message,
int percent,
int style)
Indicate the progress of an ongoing activity.
|
void |
reportStatus(String message,
int style)
Report a simple state information.
|
public ReplayReporter(Object owner)
public void addReporter(IReporter reporter)
addReporter in interface IReporterSupportpublic Object getOwner()
public void removeReporter(IReporter reporter)
removeReporter in interface IReporterSupportpublic void reportActivityEnd()
IReporterreportActivityEnd in interface IReporterpublic void reportActivityStart(String activity, int style)
IReporterreportActivityStart in interface IReporteractivity - A label for reporting the activity.public void reportError(String title, String message, Throwable t, int style)
IReporterreportError in interface IReporterpublic void reportMessage(String title, String message, int style)
IReporterreportMessage in interface IReporterpublic void reportProgress(String message, int percent, int style)
IReporterreportProgress in interface IReportermessage - The message to be displayed.percent - The amount of work already done in percent. Valid values are 0
<= percent <= 100 for progress indication, percent < 0 for the
end of progress indication.public void reportStatus(String message, int style)
IReporterreportStatus in interface IReporterCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.