com.sun.jimi.core.util
Interface ProgressListener

All Known Implementing Classes:
StdoutProgressListener

public abstract interface ProgressListener

Interface for progress monitoring classes.


Method Summary
 void setAbort()
          Indicate that the operation has been aborted.
 void setAbort(java.lang.String reason)
          Indicate that the operation has been aborted.
 void setFinished()
          Indicate that the task being monitored has completed.
 void setProgressLevel(int progress)
          Set the progress-level as a percentage.
 void setStarted()
          Indicate that the task being monitored has begun.
 

Method Detail

setStarted

public void setStarted()
Indicate that the task being monitored has begun.

setProgressLevel

public void setProgressLevel(int progress)
Set the progress-level as a percentage.
Parameters:
progress - a number between 0 and 100 representing the current level of progress

setFinished

public void setFinished()
Indicate that the task being monitored has completed.

setAbort

public void setAbort()
Indicate that the operation has been aborted.

setAbort

public void setAbort(java.lang.String reason)
Indicate that the operation has been aborted.
Parameters:
reason - the reason the operation was aborted