org.topbraid.base.progress
Class NullProgressMonitor

java.lang.Object
  extended by org.topbraid.base.progress.NullProgressMonitor
All Implemented Interfaces:
ProgressMonitor

public class NullProgressMonitor
extends Object
implements ProgressMonitor

A ProgressMonitor that doesn't "do" anything. Support for canceling is provided via setCanceled.

Author:
Holger Knublauch

Constructor Summary
NullProgressMonitor()
           
 
Method Summary
 void beginTask(String label, int totalWork)
           
 void done()
           
 boolean isCanceled()
           
 void setCanceled(boolean value)
           
 void setTaskName(String value)
           
 void subTask(String label)
           
 void worked(int amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullProgressMonitor

public NullProgressMonitor()
Method Detail

isCanceled

public boolean isCanceled()
Specified by:
isCanceled in interface ProgressMonitor

beginTask

public void beginTask(String label,
                      int totalWork)
Specified by:
beginTask in interface ProgressMonitor

done

public void done()
Specified by:
done in interface ProgressMonitor

setCanceled

public void setCanceled(boolean value)
Specified by:
setCanceled in interface ProgressMonitor

setTaskName

public void setTaskName(String value)
Specified by:
setTaskName in interface ProgressMonitor

subTask

public void subTask(String label)
Specified by:
subTask in interface ProgressMonitor

worked

public void worked(int amount)
Specified by:
worked in interface ProgressMonitor


Copyright © 2011 TopQuadrant, Inc.. All Rights Reserved.