Package edu.wpi.grip.ui.util
Class GripPlatform
- java.lang.Object
-
- edu.wpi.grip.ui.util.GripPlatform
-
public class GripPlatform extends java.lang.Object
- See Also:
- Source
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onJavaFXRunnerEvent(edu.wpi.grip.ui.util.GripPlatform.JavaFXRunnerEvent event)
void
runAsSoonAsPossible(java.lang.Runnable action)
Runs the specifiedRunnable
on the JavaFX application thread.
-
-
-
Method Detail
-
runAsSoonAsPossible
public void runAsSoonAsPossible(java.lang.Runnable action)
Runs the specifiedRunnable
on the JavaFX application thread. If we are already on the JavaFX application thread then this will be run immediately. Otherwise, it will be run as an event inside of the event bus. If IfrunAsSoonAsPossible(Runnable)
is called within itself it will always run immediately because the runnable will always be run in the JavaFX thread.- Parameters:
action
- theRunnable
to run- Throws:
java.lang.NullPointerException
- ifaction
isnull
-
onJavaFXRunnerEvent
public void onJavaFXRunnerEvent(edu.wpi.grip.ui.util.GripPlatform.JavaFXRunnerEvent event) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-