public class ReportDispatcher extends java.lang.Object implements IReporterSupport, IReporter
IReporterSupport
.STYLE_BEEP, STYLE_NONE, STYLE_STANDALONE
Constructor and Description |
---|
ReportDispatcher(java.lang.Object pOwner) |
Modifier and Type | Method and Description |
---|---|
void |
addReporter(IReporter newReporter) |
void |
attach(IReporterSupport support) |
void |
clear() |
void |
detach(IReporterSupport support) |
java.lang.Object |
getOwner() |
boolean |
isEmpty() |
void |
removeReporter(IReporter newReporter) |
void |
reportActivityEnd()
Indicate the end of an activity.
|
void |
reportActivityStart(java.lang.String message,
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.
|
public void addReporter(IReporter newReporter)
addReporter
in interface IReporterSupport
public void attach(IReporterSupport support)
public void clear()
public void detach(IReporterSupport support)
public java.lang.Object getOwner()
public boolean isEmpty()
public void removeReporter(IReporter newReporter)
removeReporter
in interface IReporterSupport
public void reportActivityEnd()
IReporter
reportActivityEnd
in interface IReporter
public void reportActivityStart(java.lang.String message, int style)
IReporter
reportActivityStart
in interface IReporter
message
- A label for reporting the activity.public void reportError(java.lang.String title, java.lang.String message, java.lang.Throwable t, int style)
IReporter
reportError
in interface IReporter
public void reportMessage(java.lang.String title, java.lang.String message, int style)
IReporter
reportMessage
in interface IReporter
public void reportProgress(java.lang.String message, int percent, int style)
IReporter
reportProgress
in interface IReporter
public void reportStatus(java.lang.String message, int style)
IReporter
reportStatus
in interface IReporter