Uses of Interface
is.codion.swing.common.model.worker.ProgressWorker.Builder
Packages that use ProgressWorker.Builder
-
Uses of ProgressWorker.Builder in is.codion.swing.common.model.worker
Methods in is.codion.swing.common.model.worker that return ProgressWorker.BuilderModifier and TypeMethodDescriptionstatic <T,
V> ProgressWorker.Builder <T, V> ProgressWorker.builder
(ProgressWorker.ProgressResultTask<T, V> task) static <V> ProgressWorker.Builder
<?, V> ProgressWorker.builder
(ProgressWorker.ProgressTask<V> task) static <T> ProgressWorker.Builder
<T, ?> ProgressWorker.builder
(ProgressWorker.ResultTask<T> task) static ProgressWorker.Builder
<?, ?> ProgressWorker.builder
(ProgressWorker.Task task) ProgressWorker.Builder.maximumProgress
(int maximumProgress) Overrides any maximumProgress specified by the task itself.ProgressWorker.Builder.onCancelled
(Runnable onCancelled) Called in case the background task is cancelled viaSwingWorker.cancel(boolean)
or if it throws aCancelException
ProgressWorker.Builder.onException
(Consumer<Exception> onException) ProgressWorker.Builder.onInterrupted
(Runnable onInterrupted) ProgressWorker.Builder.onProgress
(Consumer<Integer> onProgress) Note that this handler does not get called in case the background task finishes before theSwingWorker.StateValue.STARTED
change event is fired.