Package org.esa.snap.core.datamodel
Interface ProgressListener
- All Known Implementing Classes:
ProgressListenerList
public interface ProgressListener
The
ProgressListener interface represents a listener for the observation of possibly time consuming
processes.- Version:
- $Revision$ $Date$
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessEnded(boolean success) Called when a process ended.booleanprocessInProgress(int currentProgressValue) Called while a process in in progress.booleanprocessStarted(String processDescription, int minProgressValue, int maxProgressValue) Called when a process started.
-
Method Details
-
processStarted
Called when a process started. If the process can be started, the listener should returntrue.- Parameters:
processDescription- a short description of the process beeing startedminProgressValue-maxProgressValue-- Returns:
trueif the process was successfully started (and should be continued),falseotherwise
-
processInProgress
boolean processInProgress(int currentProgressValue) Called while a process in in progress. A listener should returntrueif the process can be continued,falseif it should be terminated.- Parameters:
currentProgressValue- the current progress value- Returns:
trueif the process should be continued,falseotherwise
-
processEnded
void processEnded(boolean success) Called when a process ended.- Parameters:
success- iftruethe process was successfully ended, otherwise it was terminated by user demand or due to an exception.
-