Package org.esa.snap.core.datamodel
Class ProgressListenerList
java.lang.Object
org.esa.snap.core.datamodel.ProgressListenerList
- All Implemented Interfaces:
ProgressListener
A utility class for clients interested in the progress made while reading, writing or somehow processing data
products.
- Version:
- $Revision$ $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressListener(ProgressListener listener) voidfireProcessEnded(boolean success) booleanfireProcessInProgress(int currentProgressValue) booleanfireProcessStarted(String processName, int minProgressValue, int maxProgressValue) booleanisEmpty()voidprocessEnded(boolean success) Don't call this method directly.booleanprocessInProgress(int currentProgressValue) Don't call this method directly.booleanprocessStarted(String processDescription, int minProgressValue, int maxProgressValue) Don't call this method directly.voidvoidremoveProgressListener(ProgressListener listener)
-
Constructor Details
-
ProgressListenerList
public ProgressListenerList()
-
-
Method Details
-
processStarted
public boolean processStarted(String processDescription, int minProgressValue, int maxProgressValue) Don't call this method directly. Instead usefireProcessStarted(java.lang.String, int, int).- Specified by:
processStartedin interfaceProgressListener- Parameters:
processDescription-minProgressValue-maxProgressValue-- Returns:
trueif the process is started, otherwisefalse.
-
processInProgress
public boolean processInProgress(int currentProgressValue) Don't call this method directly. Instead usefireProcessInProgress(int).- Specified by:
processInProgressin interfaceProgressListener- Parameters:
currentProgressValue-- Returns:
trueif the process should be continued,falseotherwise
-
processEnded
public void processEnded(boolean success) Don't call this method directly. Instead usefireProcessEnded(boolean).- Specified by:
processEndedin interfaceProgressListener- Parameters:
success-
-
addProgressListener
-
removeProgressListener
-
removeAllProgressListeners
public void removeAllProgressListeners() -
fireProcessStarted
-
fireProcessInProgress
public boolean fireProcessInProgress(int currentProgressValue) -
fireProcessEnded
public void fireProcessEnded(boolean success) -
isEmpty
public boolean isEmpty()
-