Interface ProgressListener
-
- All Known Subinterfaces:
TaskProgressListener
- All Known Implementing Classes:
ClientProgressManager.ClientRunningTask.ListeningProgressState
,CompoundProgressRangeModel.InternalProgressListener
,DummyTaskProgressListener
,ProgressDialog.ProgressTask
,ProjectOpenTask
,PullTask
,PushTask
,TaskProgressState
,TaskProgressUpdater
public interface ProgressListener
Interface for listening to something that can be tracked. Passed into an object that performs some action, that object will report back the max, progress, and notes.It also supports an indeterminate mode, where the object can tell how progress is going.
If you want to be able to cancel the operation, use
TaskProgressListener
instead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setIndeterminate(boolean bool)
Allows the object performing the action to indicate that it won't be able to report back progress information.void
setNote(java.lang.String note)
Sets some sort of note or information about the current position.void
setProgress(int val)
Used to update the current progress value, should be between 0 and the value sent to setProgressMax.void
setProgressMax(int max)
Used to indicate the upper bound of value that will be passed to setProgress.
-
-
-
Method Detail
-
setProgressMax
void setProgressMax(int max)
Used to indicate the upper bound of value that will be passed to setProgress.
-
setProgress
void setProgress(int val)
Used to update the current progress value, should be between 0 and the value sent to setProgressMax.
-
setNote
void setNote(java.lang.String note)
Sets some sort of note or information about the current position.
-
setIndeterminate
void setIndeterminate(boolean bool)
Allows the object performing the action to indicate that it won't be able to report back progress information.
-
-