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.booleanDetermines whether the propagation of the event should be stopped.voidsetStopPropagation(boolean stopPropagation) Sets whether the propagation of this event should be stopped.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AbstractBackgroundTaskEvent
-
-
Method Details
-
getTask
Returns the background task associated with this event.- Returns:
- the
BackgroundTaskinstance associated with the event
-
isStopPropagation
public boolean isStopPropagation()Determines whether the propagation of the event should be stopped.- Returns:
trueif the propagation of the event should be stopped,falseotherwise
-
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.trueto stop propagation,falseotherwise.
-