com.groovemanager.thread
Interface ProgressListener

All Known Implementing Classes:
ProgressMonitor

public interface ProgressListener

A ProgressListener can be added to a ProgressThread to be notified about the progress status of the operation

Author:
Manu Robledo

Method Summary
 void progressCancelled()
          Notification that the operation has been cancelled before finishing
 void progressElapsed(int i)
          The part of te operation elapsed so far
 void progressFinished()
          Notification htat the operation has been finished
 void progressStarted()
          Notification about the start of the operation
 void progressTotal(int i)
          The total length of the operation
 

Method Detail

progressCancelled

void progressCancelled()
Notification that the operation has been cancelled before finishing


progressElapsed

void progressElapsed(int i)
The part of te operation elapsed so far

Parameters:
i - The length of the part of the operation elapsed so far. The unit to use for this value is free defineable

progressFinished

void progressFinished()
Notification htat the operation has been finished


progressStarted

void progressStarted()
Notification about the start of the operation


progressTotal

void progressTotal(int i)
The total length of the operation

Parameters:
i - The length, the operation will take. The unit to use for this value is free defineable. If the total length of the operation can not be specified, -1 will be returned to indicate "unknown".