Package io.jmix.flowui.event
Class AbstractBackgroundTaskEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.flowui.event.AbstractBackgroundTaskEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BackgroundTaskTimeoutEvent
,BackgroundTaskUnhandledExceptionEvent
public abstract class AbstractBackgroundTaskEvent
extends org.springframework.context.ApplicationEvent
Base class for events that contain information about
BackgroundTask
.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBackgroundTask<?,
?> getTask()
Returns the background task associated with this event.boolean
Determines whether the propagation of the event should be stopped.void
setStopPropagation
(boolean stopPropagation) Sets whether the propagation of this event should be stopped.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AbstractBackgroundTaskEvent
-
-
Method Details
-
getTask
Returns the background task associated with this event.- Returns:
- the
BackgroundTask
instance associated with the event
-
isStopPropagation
public boolean isStopPropagation()Determines whether the propagation of the event should be stopped.- Returns:
true
if the propagation of the event should be stopped,false
otherwise
-
setStopPropagation
public void setStopPropagation(boolean stopPropagation) Sets whether the propagation of this event should be stopped.- Parameters:
stopPropagation
- a boolean value indicating whether to stop the propagation of the event.true
to stop propagation,false
otherwise.
-