Interface XProgressListener

All Known Implementing Classes:
XProgressBarListener

public interface XProgressListener
Interface for listening for progress on an unspecified process. A progress listener can abort the monitored process. Abortion is specified by using the isAborted() method, which should be queried periodically by the using party.
Author:
Christian W. Guenther (christian@deckfour.org)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether the monitored process has been canceled.
    void
    updateProgress(int progress, int maxProgress)
    Notifies the listener about progress being made.
  • Method Details

    • 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.