public abstract class BackgroundUpdaterTaskBase<T> extends Task.Backgroundable
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>
Modifier and Type | Field and Description |
---|---|
protected JBPopup |
myPopup |
myBackgroundOption
ALWAYS_BACKGROUND, DEAF
Constructor and Description |
---|
BackgroundUpdaterTaskBase(Project project,
java.lang.String title,
java.util.Comparator<T> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelTask() |
protected abstract Usage |
createUsage(T element) |
abstract java.lang.String |
getCaption(int size) |
int |
getCurrentSize() |
protected T |
getTheOnlyOneElement() |
GenericListComponentUpdater<T> |
getUpdater() |
void |
init(JBPopup popup,
GenericListComponentUpdater<T> updater,
Ref<? extends UsageView> usageView) |
boolean |
isCanceled() |
boolean |
isFinished() |
void |
onFinished()
This callback will be invoked on AWT dispatch thread, after other specific handlers.
|
void |
onSuccess()
This callback will be invoked on AWT dispatch thread.
|
protected void |
paintBusy(boolean paintBusy) |
protected void |
replaceModel(java.util.List<? extends T> data) |
void |
run(ProgressIndicator indicator) |
boolean |
updateComponent(T element) |
boolean |
updateComponent(T element,
java.util.Comparator comparator)
Deprecated.
Use
BackgroundUpdaterTaskBase(Project, String, Comparator) and #updateComponent(T) instead |
isConditionalModal, isModal, processSentToBackground, shouldStartInBackground
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onCancel, onError, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
protected JBPopup myPopup
public GenericListComponentUpdater<T> getUpdater()
public void init(JBPopup popup, GenericListComponentUpdater<T> updater, Ref<? extends UsageView> usageView)
public abstract java.lang.String getCaption(int size)
protected void replaceModel(java.util.List<? extends T> data)
protected void paintBusy(boolean paintBusy)
public boolean isCanceled()
@Deprecated public boolean updateComponent(T element, java.util.Comparator comparator)
BackgroundUpdaterTaskBase(Project, String, Comparator)
and #updateComponent(T)
insteadpublic boolean updateComponent(T element)
public int getCurrentSize()
public void run(ProgressIndicator indicator)
public void onSuccess()
Task
public void onFinished()
Task
onFinished
in class Task
protected T getTheOnlyOneElement()
public boolean isFinished()
public boolean cancelTask()