Package com.streambase.liveview.client
Class NullProgressMonitor
- java.lang.Object
-
- com.streambase.liveview.client.NullProgressMonitor
-
- All Implemented Interfaces:
ProgressMonitor
public final class NullProgressMonitor extends Object implements ProgressMonitor
-
-
Field Summary
-
Fields inherited from interface com.streambase.liveview.client.ProgressMonitor
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description NullProgressMonitor()Constructs a new progress monitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTask(String name, int totalWork)This implementation does nothing.voidcancel()This implementation sets the value of an internal state variable.voiddone()This implementation does nothing.booleanisCanceled()This implementation returns the value of the internal state variable set bysetCanceled.voidsubTask(String name)This implementation does nothing.voidworked(int work)This implementation does nothing.
-
-
-
Method Detail
-
beginTask
public void beginTask(String name, int totalWork)
This implementation does nothing.- Specified by:
beginTaskin interfaceProgressMonitor- Parameters:
name- the name of the tasktotalWork- the total steps to complete the task
-
done
public void done()
This implementation does nothing.- Specified by:
donein interfaceProgressMonitor
-
isCanceled
public boolean isCanceled()
This implementation returns the value of the internal state variable set bysetCanceled.- Specified by:
isCanceledin interfaceProgressMonitor- Returns:
- true if client cancelled the request
-
cancel
public void cancel()
This implementation sets the value of an internal state variable.- Specified by:
cancelin interfaceProgressMonitor
-
subTask
public void subTask(String name)
This implementation does nothing.- Specified by:
subTaskin interfaceProgressMonitor
-
worked
public void worked(int work)
This implementation does nothing.- Specified by:
workedin interfaceProgressMonitor- Parameters:
work- the amount done on the current task
-
-