com.trendmicro.grid.acl.client.util
Class ProgressIndicator

java.lang.Object
  extended by com.trendmicro.grid.acl.client.util.ProgressIndicator
All Implemented Interfaces:
Runnable

public class ProgressIndicator
extends Object
implements Runnable

Is a simple progress indicator for console apps.

Version:
1.0
Author:
juergen_kellerer, 2010-07-13

Constructor Summary
ProgressIndicator(String prefix)
           
 
Method Summary
 void append(String message)
           
 void close()
           
 boolean isClosed()
           
 void println(String line)
           
 void run()
           
 void setMessage(String message)
           
 void setProgress(double processed, double total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressIndicator

public ProgressIndicator(String prefix)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

println

public void println(String line)

setMessage

public void setMessage(String message)

setProgress

public void setProgress(double processed,
                        double total)

append

public void append(String message)

isClosed

public boolean isClosed()

close

public void close()