Callable used by ProgressUtils.showProgressDialogAndRun to do background work while a modal progress dialog is shown blocking all application windows.
Contains useful utilities that can function in a non-Swing environment.
Instances provided by the ProgressHandleFactory allow the users of the API to notify the progress bar UI about changes in the state of the running task.
The usual usecase goes like this:
ProgressHandle handle = ProgressHandle.createHandle("My custom task"); ... // we have 100 workunits // at this point the task appears in status bar. handle.start(100); ... handle.progress(10); ... handle.progress(50); ... // at this point the task is finished and removed from status bar handle.finish();
ProgressHandleclass. Additionally it's possible to include textual information about current progress.
Cancellableinterface and pass it to the
ProgressHandlewhen creating the handle.
Built on May 10 2021. | Copyright © 2017-2021 Apache Software Foundation. All Rights Reserved.