intarsys runtime library

de.intarsys.tools.reporter
Class AWTReporter

java.lang.Object
  extended by de.intarsys.tools.reporter.AWTReporter
All Implemented Interfaces:
IReporter

public class AWTReporter
extends Object
implements IReporter

AWT based IReporter implementation.


Field Summary
 
Fields inherited from interface de.intarsys.tools.reporter.IReporter
STYLE_BEEP, STYLE_NONE, STYLE_STANDALONE
 
Constructor Summary
AWTReporter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTReporter

public AWTReporter()
Method Detail

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.

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

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

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 - 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.

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

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.