Class JavaFXCommand

java.lang.Object
fr.r1r0r0.deltaengine.tools.JavaFXCommand

public final class JavaFXCommand
extends java.lang.Object
Tool class used to run JavaFX commands in JavaFX thread synchronously
  • Constructor Summary

    Constructors
    Constructor Description
    JavaFXCommand()  
  • Method Summary

    Modifier and Type Method Description
    static void runAndWait​(java.lang.Runnable action)
    Run an action in JavaFX thread, and wait to be completed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JavaFXCommand

      public JavaFXCommand()
  • Method Details

    • runAndWait

      public static void runAndWait​(java.lang.Runnable action) throws java.lang.InterruptedException
      Run an action in JavaFX thread, and wait to be completed.
      Parameters:
      action - action to run
      Throws:
      java.lang.InterruptedException - because it waits JavaFX thread, it will return InterruptedException if current Thread is interrupted