@OpenApiAll
public class ProgressStatusRunner
extends java.lang.Object
RunnableWithProgress
,
ProgressStatus
Constructor and Description |
---|
ProgressStatusRunner() |
Modifier and Type | Method and Description |
---|---|
static void |
runWithProgressStatus(RunnableWithProgress runnable,
java.lang.String description,
boolean allowCancel,
int millisToShow)
Executes runnable with progress status.
|
public static void runWithProgressStatus(RunnableWithProgress runnable, java.lang.String description, boolean allowCancel, int millisToShow)
runnable
- runnable actually performing the task.description
- title of progress bar.allowCancel
- true if cancel should be enabled.millisToShow
- amount of time before progress is displayed. Pass 0 if progress should be displayed without delay.RunnableWithProgress
,
ProgressStatus