public abstract class SwingWorkerWithMonitor<T,V> extends SwingWorker<T,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
SwingWorkerWithMonitor.CancelActionException |
SwingWorker.StateValue| Modifier and Type | Field and Description |
|---|---|
protected AbstractProgressMonitor |
progressMonitor |
protected long |
startTime |
| Modifier | Constructor and Description |
|---|---|
protected |
SwingWorkerWithMonitor(AbstractProgressMonitor progressMonitor) |
protected |
SwingWorkerWithMonitor(Component parent,
Object message,
boolean indeterminate) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
complete() |
long |
elapsedTimeMillis() |
protected void |
end() |
protected void |
endLoop(String endLoopMessage) |
protected void |
notifyProgressMonitor() |
protected void |
start(String startProgressNote) |
protected void |
startLoop(Supplier<Integer> progressSupplier,
Supplier<String> statusSupplier) |
protected void |
tick() |
addPropertyChangeListener, cancel, doInBackground, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgressprotected final AbstractProgressMonitor progressMonitor
protected final long startTime
protected SwingWorkerWithMonitor(Component parent, Object message, boolean indeterminate)
protected SwingWorkerWithMonitor(AbstractProgressMonitor progressMonitor)
public long elapsedTimeMillis()
protected void start(String startProgressNote)
protected void startLoop(Supplier<Integer> progressSupplier, Supplier<String> statusSupplier) throws SwingWorkerWithMonitor.CancelActionException
protected void notifyProgressMonitor()
protected void endLoop(String endLoopMessage) throws SwingWorkerWithMonitor.CancelActionException
protected void end()
protected T complete() throws ExecutionException, InterruptedException
protected void tick()
throws SwingWorkerWithMonitor.CancelActionException
Copyright © 2009–2021 KRDB Research Centre for Knowledge and Data, Free University of Bozen-Bolzano. All rights reserved.