com.xmlmind.util
Class ProgressMonitorConsole

java.lang.Object
  extended by com.xmlmind.util.ProgressMonitorConsole
All Implemented Interfaces:
Console

public final class ProgressMonitorConsole
extends java.lang.Object
implements Console

A Console which forwards its message to a ProgressMonitor.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.xmlmind.util.Console
Console.MessageType
 
Field Summary
 ProgressMonitor monitor
          The ProgressMonitor to which messages are forwarded.
 
Constructor Summary
ProgressMonitorConsole(ProgressMonitor monitor)
          Constructs a console.
 
Method Summary
 void showMessage(java.lang.String message, Console.MessageType messageType)
          Show specified message to user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monitor

public final ProgressMonitor monitor
The ProgressMonitor to which messages are forwarded.

Constructor Detail

ProgressMonitorConsole

public ProgressMonitorConsole(ProgressMonitor monitor)
Constructs a console.

Parameters:
monitor - the ProgressMonitor to which messages are forwarded
Method Detail

showMessage

public void showMessage(java.lang.String message,
                        Console.MessageType messageType)
Description copied from interface: Console
Show specified message to user.

Specified by:
showMessage in interface Console
Parameters:
message - a possibly multi-line message
messageType - type of message: Console.MessageType.INFO, Console.MessageType.WARNING, Console.MessageType.ERROR or Console.MessageType.DEBUG.