public class ReportDispatcher extends Object implements IReporterSupport, IReporter
IReporterSupport.STYLE_BEEP, STYLE_NONE, STYLE_STANDALONE| Constructor and Description |
|---|
ReportDispatcher(Object pOwner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReporter(IReporter newReporter) |
void |
attach(IReporterSupport support) |
void |
clear() |
void |
detach(IReporterSupport support) |
Object |
getOwner() |
boolean |
isEmpty() |
void |
removeReporter(IReporter newReporter) |
void |
reportActivityEnd()
Indicate the end of an activity.
|
void |
reportActivityStart(String message,
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 ReportDispatcher(Object pOwner)
public void addReporter(IReporter newReporter)
addReporter in interface IReporterSupportpublic void attach(IReporterSupport support)
public void clear()
public void detach(IReporterSupport support)
public Object getOwner()
public boolean isEmpty()
public void removeReporter(IReporter newReporter)
removeReporter in interface IReporterSupportpublic void reportActivityEnd()
IReporterreportActivityEnd in interface IReporterpublic void reportActivityStart(String message, int style)
IReporterreportActivityStart in interface IReportermessage - 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.