Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.impl
Class NullProgressIndicator

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.io.impl.NullProgressIndicator
All Implemented Interfaces:
ProgressIndicator

public class NullProgressIndicator
extends Object
implements ProgressIndicator

Dummy progress indicator ignoring everything you tell him.

Author:
Simon Templer

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.common.core.io.ProgressIndicator
UNKNOWN
 
Constructor Summary
NullProgressIndicator()
           
 
Method Summary
 void advance(int workUnits)
          Advances the progress by the given work units
 void begin(String taskName, int totalWork)
          Start the progress tracking
 void end()
          Stop the progress tracking, signaling that the task is done
 boolean isCanceled()
          States if the execution was canceled
 void setCurrentTask(String taskName)
          Sets the current task name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullProgressIndicator

public NullProgressIndicator()
Method Detail

begin

public void begin(String taskName,
                  int totalWork)
Description copied from interface: ProgressIndicator
Start the progress tracking

Specified by:
begin in interface ProgressIndicator
Parameters:
taskName - the main task name
totalWork - the total work units for the progress indicator, if unknown use ProgressIndicator.UNKNOWN

setCurrentTask

public void setCurrentTask(String taskName)
Description copied from interface: ProgressIndicator
Sets the current task name

Specified by:
setCurrentTask in interface ProgressIndicator
Parameters:
taskName - the task name

advance

public void advance(int workUnits)
Description copied from interface: ProgressIndicator
Advances the progress by the given work units

Specified by:
advance in interface ProgressIndicator
Parameters:
workUnits - the work units

isCanceled

public boolean isCanceled()
Description copied from interface: ProgressIndicator
States if the execution was canceled

Specified by:
isCanceled in interface ProgressIndicator
Returns:
if the execution was canceled

end

public void end()
Description copied from interface: ProgressIndicator
Stop the progress tracking, signaling that the task is done

Specified by:
end in interface ProgressIndicator

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d