Class ReportDispatcher

java.lang.Object
de.intarsys.tools.reporter.ReportDispatcher
All Implemented Interfaces:
IReporter, IReporterSupport

public class ReportDispatcher extends Object implements IReporterSupport, IReporter
Helper object for implementing IReporterSupport.
  • Constructor Details

    • ReportDispatcher

      public ReportDispatcher(Object pOwner)
  • Method Details

    • addReporter

      public void addReporter(IReporter newReporter)
      Specified by:
      addReporter in interface IReporterSupport
    • attach

      public void attach(IReporterSupport support)
    • clear

      public void clear()
    • detach

      public void detach(IReporterSupport support)
    • getOwner

      public Object getOwner()
    • isEmpty

      public boolean isEmpty()
    • removeReporter

      public void removeReporter(IReporter newReporter)
      Specified by:
      removeReporter in interface IReporterSupport
    • reportActivityEnd

      public void reportActivityEnd()
      Description copied from interface: IReporter
      Indicate the end of an activity.
      Specified by:
      reportActivityEnd in interface IReporter
    • reportActivityStart

      public void reportActivityStart(String message, int style)
      Description copied from interface: IReporter
      Indicate the beginning of an activity, possibly blocking system interaction.
      Specified by:
      reportActivityStart in interface IReporter
      Parameters:
      message - A label for reporting the activity.
      style -
    • reportError

      public void reportError(String title, String message, Throwable t, int style)
      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 interface IReporter
      Parameters:
      title -
      message -
      t -
      style -
    • reportMessage

      public void reportMessage(String title, String message, int style)
      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 interface IReporter
      Parameters:
      title -
      message -
      style -
    • reportProgress

      public void reportProgress(String message, int percent, int style)
      Description copied from interface: IReporter
      Indicate the progress of an ongoing activity. The activity will probably run concurrently.
      Specified by:
      reportProgress in interface IReporter
      Parameters:
      message -
      percent -
      style -
    • reportStatus

      public void reportStatus(String message, int style)
      Description copied from interface: IReporter
      Report a simple state information. This should not block the system in any way.
      Specified by:
      reportStatus in interface IReporter
      Parameters:
      message -
      style -