Interface Progress

All Known Implementing Classes:
ProgressImpl

public interface Progress
Represents the progress of a task and can be updated.

Usage example:


     public Void call() {
         Progress progress = context.getProgress();

         // client.zipimport.extract_files=Archiv wird extrahiert
         progress.updateInfinite( "client.zipimport.extract_archive" );

         // do extract and count files...

         // client.zipimport.import_files=:done von :total Dateien importiert
         progress.updateAbsolute( "client.zipimport.import_files", totalCount, 0 );

         for ( int i = 0; i < totalCount; i++ ) {
             // do import files...

             progress.updateAbsolute( "client.zipimport.import_files", totalCount, i + 1 );
         }

         // client.zipimport.cleanup=Aufräumen
         progress.updateInfinite( "client.zipimport.cleanup" );

         // do cleanup...
     }