Package org.esa.snap.core.datamodel
Class ProgressListenerList
- java.lang.Object
-
- org.esa.snap.core.datamodel.ProgressListenerList
-
- All Implemented Interfaces:
ProgressListener
public class ProgressListenerList extends Object implements 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 Constructor Description ProgressListenerList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProgressListener(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.voidremoveAllProgressListeners()voidremoveProgressListener(ProgressListener listener)
-
-
-
Method Detail
-
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
public void addProgressListener(ProgressListener listener)
-
removeProgressListener
public void removeProgressListener(ProgressListener listener)
-
removeAllProgressListeners
public void removeAllProgressListeners()
-
fireProcessStarted
public boolean fireProcessStarted(String processName, int minProgressValue, int maxProgressValue)
-
fireProcessInProgress
public boolean fireProcessInProgress(int currentProgressValue)
-
fireProcessEnded
public void fireProcessEnded(boolean success)
-
isEmpty
public boolean isEmpty()
-
-