org.biffle.cliff.pearl2.handlers
Class ConsoleProgressHandler

java.lang.Object
  |
  +--org.biffle.cliff.pearl2.handlers.ConsoleProgressHandler
All Implemented Interfaces:
ProgressHandler

public class ConsoleProgressHandler
extends java.lang.Object
implements ProgressHandler

Displays progress indicator on the console.


Constructor Summary
ConsoleProgressHandler()
           
 
Method Summary
 void showProgress(int current, int total)
          Called when progress occurs on the current task.
 void startProgress(java.lang.String title)
          Called when a new task begins.
 void stopProgress()
          Called when a task completes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleProgressHandler

public ConsoleProgressHandler()
Method Detail

startProgress

public void startProgress(java.lang.String title)
Called when a new task begins. title must not be null.

Specified by:
startProgress in interface ProgressHandler

showProgress

public void showProgress(int current,
                         int total)
Called when progress occurs on the current task.

Specified by:
showProgress in interface ProgressHandler

stopProgress

public void stopProgress()
Called when a task completes.

Specified by:
stopProgress in interface ProgressHandler