class RunnableProcessor
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
private static class |
RunnableProcessor.RunLoopControl |
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<RunnableProcessor.RunLoopControl> |
activeRunLoops |
private RunnableQueue |
queue |
Constructor and Description |
---|
RunnableProcessor() |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
enterNestedEventLoop() |
(package private) void |
invokeAndWait(java.lang.Runnable r)
Posts a Runnable to the JavaFX event queue and waits for the Runnable
to complete.
|
(package private) void |
invokeLater(java.lang.Runnable r)
Posts a Runnable to the JavaFX event queue using this RunnableProcessor
|
(package private) void |
leaveNestedEventLoop(java.lang.Object retValue) |
void |
run() |
(package private) static void |
runLater(java.lang.Runnable r)
Posts a Runnable to the JavaFX event queue using the global
RunnableProcessor.
|
private java.lang.Object |
runLoop() |
(package private) void |
shutdown() |
private RunnableQueue queue
private java.util.LinkedList<RunnableProcessor.RunLoopControl> activeRunLoops
public void run()
run
in interface java.lang.Runnable
void invokeLater(java.lang.Runnable r)
r
- an action to be performed on the JavaFX application thread.void invokeAndWait(java.lang.Runnable r)
r
- an action to be performed on the JavaFX application thread.private java.lang.Object runLoop()
java.lang.Object enterNestedEventLoop()
void leaveNestedEventLoop(java.lang.Object retValue)
void shutdown()
static void runLater(java.lang.Runnable r)
r
- an action to be performed on the JavaFX application thread.