How to use a determinate progress indicator

It seems as though the Task.Modal and the inherited progress indicator does not care about the setIndeterminate(boolean) method.

Is it possible to use a progress indicator which actually displays progress from 0.0 to 1.0?

2 comments
Comment actions Permalink

have you tried using setFraction()?

the setIndeterminate() seems not to work always if called at the beginning of the process (the "oscillation" of the progress indicator does not start). On the other hand if you background the process, the indicator on the status bar will start oscillate. Nevertheless if you have the chance to call setIndeterminate() from somewhere within the process, the modal status indicator will oscillate as well.

0
Comment actions Permalink

This does not seem to be the case.

The Task.Modal's run-method receives an instance of a ProgressIndicator (interface). The actual implementation seems to always be the EmptyProgressIndicator contained in the progress-package. This particular ProgressIndicator has most of its methods implemented as empty methods, and does not react to the setFraction-method.

0

Please sign in to leave a comment.