Package de.intarsys.tools.reporter
Class ReplayReporter
java.lang.Object
de.intarsys.tools.reporter.ReplayReporter
- All Implemented Interfaces:
IReporter
,IReporterSupport
An
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.
-
Field Summary
Fields inherited from interface de.intarsys.tools.reporter.IReporter
STYLE_BEEP, STYLE_NONE, STYLE_STANDALONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addMessage
(ReportMessage message) void
addReporter
(IReporter reporter) getOwner()
void
removeReporter
(IReporter reporter) protected void
void
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.
-
Constructor Details
-
ReplayReporter
-
-
Method Details
-
addMessage
-
addReporter
- Specified by:
addReporter
in interfaceIReporterSupport
-
getOwner
-
removeReporter
- Specified by:
removeReporter
in interfaceIReporterSupport
-
replay
-
reportActivityEnd
public void reportActivityEnd()Description copied from interface:IReporter
Indicate the end of an activity.- Specified by:
reportActivityEnd
in interfaceIReporter
-
reportActivityStart
Description copied from interface:IReporter
Indicate the beginning of an activity, possibly blocking system interaction.- Specified by:
reportActivityStart
in interfaceIReporter
- Parameters:
activity
- A label for reporting the activity.
-
reportError
Description copied from interface:IReporter
Indicate an error condition. This method will return normally after a possible user interaction, any error handling is still up to the caller.- Specified by:
reportError
in interfaceIReporter
-
reportMessage
Description copied from interface:IReporter
Report a message to the user. The message should be displayed in a blocking way in an interactive system.- Specified by:
reportMessage
in interfaceIReporter
-
reportProgress
Description copied from interface:IReporter
Indicate the progress of an ongoing activity. The activity will probably run concurrently.- Specified by:
reportProgress
in interfaceIReporter
-
reportStatus
Description copied from interface:IReporter
Report a simple state information. This should not block the system in any way.- Specified by:
reportStatus
in interfaceIReporter
-