Package io.jmix.imapui.screen.message
Class ImapMessageEdit.InitBodyTask
java.lang.Object
io.jmix.ui.executor.BackgroundTask<Integer,ImapMessageDto>
io.jmix.imapui.screen.message.ImapMessageEdit.InitBodyTask
- Enclosing class:
- ImapMessageEdit
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.executor.BackgroundTask
BackgroundTask.ProgressListener<T,V>, BackgroundTask.ProgressListenerAdapter<T, V> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcanceled()Called by the execution environment in UI thread if the task is canceled byBackgroundTaskHandler.cancel()invocation.voiddone(ImapMessageDto dto) Called by the execution environment in UI thread when the task is completed.voidCalled by the execution environment in UI thread on progress change.run(TaskLifeCycle<Integer> taskLifeCycle) Main method that performs a task.Methods inherited from class io.jmix.ui.executor.BackgroundTask
addProgressListener, getOwnerFrame, getOwnerScreen, getParams, getProgressListeners, getTimeoutMilliseconds, getTimeoutSeconds, handleException, handleTimeoutException, removeProgressListener
-
Field Details
-
message
-
loadProgress
-
-
Method Details
-
run
Description copied from class:BackgroundTaskMain method that performs a task.
Called by the execution environment in a separate working thread.
Implementation of this method should support interruption:- In long loops check
TaskLifeCycle.isInterrupted()and return if it is true - Don't swallow
InterruptedException- return from the method or don't catch it at all
- Specified by:
runin classBackgroundTask<Integer,ImapMessageDto> - Parameters:
taskLifeCycle- lifecycle object that allows the main method to interact with the execution environment- Returns:
- task result
- In long loops check
-
canceled
public void canceled()Description copied from class:BackgroundTaskCalled by the execution environment in UI thread if the task is canceled byBackgroundTaskHandler.cancel()invocation.
This method is not called in case of timeout expiration or owner window closing.- Overrides:
canceledin classBackgroundTask<Integer,ImapMessageDto>
-
done
Description copied from class:BackgroundTaskCalled by the execution environment in UI thread when the task is completed.- Overrides:
donein classBackgroundTask<Integer,ImapMessageDto> - Parameters:
dto- result of execution returned byBackgroundTask.run(TaskLifeCycle)method
-
progress
Description copied from class:BackgroundTaskCalled by the execution environment in UI thread on progress change.- Overrides:
progressin classBackgroundTask<Integer,ImapMessageDto> - Parameters:
changes- list of changes since previous invocation
-