Class 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 specified Runnable on the JavaFX application thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • runAsSoonAsPossible

        public void runAsSoonAsPossible​(java.lang.Runnable action)
        Runs the specified Runnable 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 If runAsSoonAsPossible(Runnable) is called within itself it will always run immediately because the runnable will always be run in the JavaFX thread.
        Parameters:
        action - the Runnable to run
        Throws:
        java.lang.NullPointerException - if action is null
      • onJavaFXRunnerEvent

        public void onJavaFXRunnerEvent​(edu.wpi.grip.ui.util.GripPlatform.JavaFXRunnerEvent event)
                                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException