public boolean notifyProgress(double progress) { this.ensureVisible(); this.setProgressBarValue((int) Math.floor(100.0 * progress), 100); this.clearProgressText(); return !this.isCancelPending(); }
public boolean notifyProgress(int value, int maximum) { this.ensureVisible(); this.setProgressBarValue(value, maximum); this.setProgressText(value, maximum); return !this.isCancelPending(); }