org.wicketstuff.async.task
Interface IProgressObservableRunnable

All Superinterfaces:
Runnable

public interface IProgressObservableRunnable
extends Runnable

A future implementing this interface allows to communicate its progress to the a ProgressBar.


Method Summary
 double getProgress()
          The progress of the current task.
 String getProgressMessage()
          Returns a custom message about the progress.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getProgress

double getProgress()
The progress of the current task.

Returns:
Should be between 0 and 1. Other values will be truncated to this interval.

getProgressMessage

String getProgressMessage()
Returns a custom message about the progress.

Returns:
A message to be displayed to the user.


Copyright © 2013–2014 Kantega AS. All rights reserved.