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 void
beginTask(String name, int totalWork)
This implementation does nothing.void
cancel()
This implementation sets the value of an internal state variable.void
done()
This implementation does nothing.boolean
isCanceled()
This implementation returns the value of the internal state variable set bysetCanceled
.void
subTask(String name)
This implementation does nothing.void
worked(int work)
This implementation does nothing.
-
-
-
Method Detail
-
beginTask
public void beginTask(String name, int totalWork)
This implementation does nothing.- Specified by:
beginTask
in 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:
done
in interfaceProgressMonitor
-
isCanceled
public boolean isCanceled()
This implementation returns the value of the internal state variable set bysetCanceled
.- Specified by:
isCanceled
in interfaceProgressMonitor
- Returns:
- true if client cancelled the request
-
cancel
public void cancel()
This implementation sets the value of an internal state variable.- Specified by:
cancel
in interfaceProgressMonitor
-
subTask
public void subTask(String name)
This implementation does nothing.- Specified by:
subTask
in interfaceProgressMonitor
-
worked
public void worked(int work)
This implementation does nothing.- Specified by:
worked
in interfaceProgressMonitor
- Parameters:
work
- the amount done on the current task
-
-