public abstract static class Task.Backgroundable extends Task implements PerformInBackgroundOption
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>
Modifier and Type | Field and Description |
---|---|
protected PerformInBackgroundOption |
myBackgroundOption |
ALWAYS_BACKGROUND, DEAF
Constructor and Description |
---|
Backgroundable(Project project,
java.lang.String title) |
Backgroundable(Project project,
java.lang.String title,
boolean canBeCancelled) |
Backgroundable(Project project,
java.lang.String title,
boolean canBeCancelled,
PerformInBackgroundOption backgroundOption) |
Modifier and Type | Method and Description |
---|---|
boolean |
isConditionalModal() |
boolean |
isModal() |
void |
processSentToBackground() |
boolean |
shouldStartInBackground() |
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onCancel, onError, onFinished, onSuccess, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
protected final PerformInBackgroundOption myBackgroundOption
public Backgroundable(Project project, java.lang.String title)
public Backgroundable(Project project, java.lang.String title, boolean canBeCancelled)
public Backgroundable(Project project, java.lang.String title, boolean canBeCancelled, PerformInBackgroundOption backgroundOption)
public boolean shouldStartInBackground()
shouldStartInBackground
in interface PerformInBackgroundOption
public void processSentToBackground()
processSentToBackground
in interface PerformInBackgroundOption
public boolean isConditionalModal()