Package io.jmix.ui.executor
Class BackgroundTask.ProgressListenerAdapter<T,V>
java.lang.Object
io.jmix.ui.executor.BackgroundTask.ProgressListenerAdapter<T,V>
- All Implemented Interfaces:
BackgroundTask.ProgressListener<T,
V>
- Enclosing class:
- BackgroundTask<T,
V>
public static class BackgroundTask.ProgressListenerAdapter<T,V>
extends Object
implements BackgroundTask.ProgressListener<T,V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCancel()
Called by the execution environment in UI thread if the task is canceled.void
Called by the execution environment in UI thread when the task is completed.void
onProgress
(List<T> changes) Called by the execution environment in UI thread on progress change.
-
Constructor Details
-
ProgressListenerAdapter
public ProgressListenerAdapter()
-
-
Method Details
-
onProgress
Description copied from interface:BackgroundTask.ProgressListener
Called by the execution environment in UI thread on progress change.- Specified by:
onProgress
in interfaceBackgroundTask.ProgressListener<T,
V> - Parameters:
changes
- list of changes since previous invocation
-
onDone
Description copied from interface:BackgroundTask.ProgressListener
Called by the execution environment in UI thread when the task is completed.- Specified by:
onDone
in interfaceBackgroundTask.ProgressListener<T,
V> - Parameters:
result
- result of execution returned byBackgroundTask.run(TaskLifeCycle)
method
-
onCancel
public void onCancel()Description copied from interface:BackgroundTask.ProgressListener
Called by the execution environment in UI thread if the task is canceled.- Specified by:
onCancel
in interfaceBackgroundTask.ProgressListener<T,
V>
-