Package de.intarsys.tools.reporter
Class ReportDispatcher
java.lang.Object
de.intarsys.tools.reporter.ReportDispatcher
- All Implemented Interfaces:
IReporter,IReporterSupport
Helper object for implementing
IReporterSupport.-
Field Summary
Fields inherited from interface de.intarsys.tools.reporter.IReporter
STYLE_BEEP, STYLE_NONE, STYLE_STANDALONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReporter(IReporter newReporter) voidattach(IReporterSupport support) voidclear()voiddetach(IReporterSupport support) getOwner()booleanisEmpty()voidremoveReporter(IReporter newReporter) voidIndicate the end of an activity.voidreportActivityStart(String message, int style) Indicate the beginning of an activity, possibly blocking system interaction.voidreportError(String title, String message, Throwable t, int style) Indicate an error condition.voidreportMessage(String title, String message, int style) Report a message to the user.voidreportProgress(String message, int percent, int style) Indicate the progress of an ongoing activity.voidreportStatus(String message, int style) Report a simple state information.
-
Constructor Details
-
ReportDispatcher
-
-
Method Details
-
addReporter
- Specified by:
addReporterin interfaceIReporterSupport
-
attach
-
clear
public void clear() -
detach
-
getOwner
-
isEmpty
public boolean isEmpty() -
removeReporter
- Specified by:
removeReporterin interfaceIReporterSupport
-
reportActivityEnd
public void reportActivityEnd()Description copied from interface:IReporterIndicate the end of an activity.- Specified by:
reportActivityEndin interfaceIReporter
-
reportActivityStart
Description copied from interface:IReporterIndicate the beginning of an activity, possibly blocking system interaction.- Specified by:
reportActivityStartin interfaceIReporter- Parameters:
message- A label for reporting the activity.style-
-
reportError
Description copied from interface:IReporterIndicate an error condition. This method will return normally after a possible user interaction, any error handling is still up to the caller.- Specified by:
reportErrorin interfaceIReporter- Parameters:
title-message-t-style-
-
reportMessage
Description copied from interface:IReporterReport a message to the user. The message should be displayed in a blocking way in an interactive system.- Specified by:
reportMessagein interfaceIReporter- Parameters:
title-message-style-
-
reportProgress
Description copied from interface:IReporterIndicate the progress of an ongoing activity. The activity will probably run concurrently.- Specified by:
reportProgressin interfaceIReporter- Parameters:
message-percent-style-
-
reportStatus
Description copied from interface:IReporterReport a simple state information. This should not block the system in any way.- Specified by:
reportStatusin interfaceIReporter- Parameters:
message-style-
-