Interface XProgressListener
-
- All Known Implementing Classes:
XProgressBarListener
public interface XProgressListenerInterface for listening for progress on an unspecified process. A progress listener can abort the monitored process. Abortion is specified by using theisAborted()method, which should be queried periodically by the using party.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAborted()Checks whether the monitored process has been canceled.voidupdateProgress(int progress, int maxProgress)Notifies the listener about progress being made.
-
-
-
Method Detail
-
updateProgress
void updateProgress(int progress, int maxProgress)Notifies the listener about progress being made.- Parameters:
progress- Current progress step achieved.maxProgress- Maximal progress steps available.
-
isAborted
boolean isAborted()
Checks whether the monitored process has been canceled.
-
-