Package editor.util
Class BackgroundOperation
java.lang.Object
editor.util.BackgroundOperation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Sets the mouse cursor to the wait cursor, blocks input, and queues the runnable up in the ExecutorService.private ExecutorService
Returns the instance of the job dispatcher, used for scheduling time-consuming operations (element state updates) on a separate thread.static BackgroundOperation
instance()
(package private) void
performBackgroundOp
(Runnable run, Component[] key, boolean showWaitCursor) void
Pumps through all current events in the background operation queue.void
waitOnBackgroundOp
(long timeout)
-
Field Details
-
g_instance
-
_jobRunner
-
-
Constructor Details
-
BackgroundOperation
private BackgroundOperation()
-
-
Method Details
-
instance
-
doBackgroundWaitOp
Sets the mouse cursor to the wait cursor, blocks input, and queues the runnable up in the ExecutorService. -
doBackgroundOp
Runs a job in a background thread, using the ExecutorService, and optionally sets the cursor to the wait cursor and blocks input. -
performBackgroundOp
-
getJobRunner
Returns the instance of the job dispatcher, used for scheduling time-consuming operations (element state updates) on a separate thread. -
waitOnBackgroundOp
public void waitOnBackgroundOp()Pumps through all current events in the background operation queue. Note that this is *NOT* a settle. Any operations added after this method is invoked will not be executed. -
waitOnBackgroundOp
public void waitOnBackgroundOp(long timeout)
-