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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCancel()Called by the execution environment in UI thread if the task is canceled.voidCalled by the execution environment in UI thread when the task is completed.voidonProgress(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.ProgressListenerCalled by the execution environment in UI thread on progress change.- Specified by:
onProgressin interfaceBackgroundTask.ProgressListener<T,V> - Parameters:
changes- list of changes since previous invocation
-
onDone
Description copied from interface:BackgroundTask.ProgressListenerCalled by the execution environment in UI thread when the task is completed.- Specified by:
onDonein interfaceBackgroundTask.ProgressListener<T,V> - Parameters:
result- result of execution returned byBackgroundTask.run(TaskLifeCycle)method
-
onCancel
public void onCancel()Description copied from interface:BackgroundTask.ProgressListenerCalled by the execution environment in UI thread if the task is canceled.- Specified by:
onCancelin interfaceBackgroundTask.ProgressListener<T,V>
-