Top Description Inners Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv Class RunnableProcessor

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable
Imports
com.sun.glass.ui.Application, java.util.LinkedList, java.util.concurrent.CountDownLatch

RunnableProcessor provides control over nested run loops in the JavaFX event queue.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private LinkedList<RunnableProcessor.RunLoopControl>
private RunnableQueue

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
pack-priv void
invokeAndWait(final Runnable
an action to be performed on the JavaFX application thread.
r
)

Posts a Runnable to the JavaFX event queue and waits for the Runnable to complete.

pack-priv void
invokeLater(Runnable
an action to be performed on the JavaFX application thread.
r
)

Posts a Runnable to the JavaFX event queue using this RunnableProcessor

pack-priv void
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

pack-priv static void
runLater(Runnable
an action to be performed on the JavaFX application thread.
r
)

Posts a Runnable to the JavaFX event queue using the global RunnableProcessor.

private Object
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeRunLoopsback to summary
private LinkedList<RunnableProcessor.RunLoopControl> activeRunLoops
queueback to summary
private RunnableQueue queue

Constructor Detail

RunnableProcessorback to summary
pack-priv RunnableProcessor()

Method Detail

enterNestedEventLoopback to summary
pack-priv Object enterNestedEventLoop()
invokeAndWaitback to summary
pack-priv void invokeAndWait(final Runnable r)

Posts a Runnable to the JavaFX event queue and waits for the Runnable to complete.

Parameters
r:Runnable

an action to be performed on the JavaFX application thread.

invokeLaterback to summary
pack-priv void invokeLater(Runnable r)

Posts a Runnable to the JavaFX event queue using this RunnableProcessor

Parameters
r:Runnable

an action to be performed on the JavaFX application thread.

leaveNestedEventLoopback to summary
pack-priv void leaveNestedEventLoop(Object retValue)
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
runLaterback to summary
pack-priv static void runLater(Runnable r)

Posts a Runnable to the JavaFX event queue using the global RunnableProcessor.

Parameters
r:Runnable

an action to be performed on the JavaFX application thread.

runLoopback to summary
private Object runLoop()
shutdownback to summary
pack-priv void shutdown()
com.sun.glass.ui.monocle back to summary

private Class RunnableProcessor.RunLoopControl

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv Object

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeback to summary
pack-priv boolean active
releaseback to summary
pack-priv Object release

Constructor Detail

RunLoopControlback to summary
private RunLoopControl()