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 voidonJavaFXRunnerEvent(edu.wpi.grip.ui.util.GripPlatform.JavaFXRunnerEvent event)voidrunAsSoonAsPossible(java.lang.Runnable action)Runs the specifiedRunnableon the JavaFX application thread.
-
-
-
Method Detail
-
runAsSoonAsPossible
public void runAsSoonAsPossible(java.lang.Runnable action)
Runs the specifiedRunnableon 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- theRunnableto run- Throws:
java.lang.NullPointerException- ifactionisnull
-
onJavaFXRunnerEvent
public void onJavaFXRunnerEvent(edu.wpi.grip.ui.util.GripPlatform.JavaFXRunnerEvent event) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-