19 package org.sleuthkit.autopsy.progress;
21 import org.netbeans.api.progress.ProgressHandle;
22 import org.openide.util.Cancellable;
60 public void start(String message,
int totalWorkUnits) {
62 this.progressHandle = ProgressHandle.createHandle(displayName, cancellationBehavior);
63 progressHandle.start(totalWorkUnits);
64 progressHandle.progress(message);
68 public void start(String message) {
70 this.progressHandle = ProgressHandle.createHandle(displayName, cancellationBehavior);
71 progressHandle.start();
72 progressHandle.progress(message);
78 progressHandle.switchToIndeterminate();
79 progressHandle.progress(message);
86 progressHandle.switchToDeterminate(totalWorkUnits);
87 progressHandle.progress(message, workUnitsCompleted);
94 progressHandle.progress(message);
101 progressHandle.progress(workUnitsCompleted);
106 public void progress(String message,
int workUnitsCompleted) {
108 progressHandle.progress(message, workUnitsCompleted);
115 progressHandle.switchToIndeterminate();
116 progressHandle.progress(cancellingMessage);
121 progressHandle.finish();
void setCancelling(String cancellingMessage)
volatile boolean cancelling
void switchToDeterminate(String message, int workUnitsCompleted, int totalWorkUnits)
void start(String message, int totalWorkUnits)
void progress(String message)
void progress(int workUnitsCompleted)
ProgressHandle progressHandle
void setCancellationBehavior(Cancellable cancellationBehavior)
void start(String message)
void switchToIndeterminate(String message)
void progress(String message, int workUnitsCompleted)
Cancellable cancellationBehavior
AppFrameProgressBar(String displayName)