public class BackgroundOperation extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
doBackgroundOp(Runnable run,
boolean showWaitCursor)
Runs a job in a background thread, using the ExecutorService, and optionally
sets the cursor to the wait cursor and blocks input.
|
void |
doBackgroundWaitOp(Runnable run)
Sets the mouse cursor to the wait cursor, blocks input, and queues the runnable
up in the ExecutorService.
|
static BackgroundOperation |
instance() |
void |
waitOnBackgroundOp()
Pumps through all current events in the background operation queue.
|
void |
waitOnBackgroundOp(long timeout) |
public static BackgroundOperation instance()
public void doBackgroundWaitOp(Runnable run)
public void doBackgroundOp(Runnable run, boolean showWaitCursor)
public void waitOnBackgroundOp()
public void waitOnBackgroundOp(long timeout)
Copyright © 2022. All rights reserved.