Interface IJavaFXApplicationThreadExecution

  • All Known Implementing Classes:
    CurrentThreadExecution, JavaFXApplicationThreadExecution

    public interface IJavaFXApplicationThreadExecution
    Wrapper class for injection into the FX application thread. As some tests do not require to run in the FX application thread there may be different implementations.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 08, 2014
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute​(java.lang.Runnable executable)
      Make sure the executable is run in the proper context.
      boolean isFxApplicationThread()
      Indicates if the current thread is already the thread on which the Runnable should be executed.
    • Method Detail

      • execute

        void execute​(java.lang.Runnable executable)
        Make sure the executable is run in the proper context.
        Parameters:
        executable - runnable that should be executed.
      • isFxApplicationThread

        boolean isFxApplicationThread()
        Indicates if the current thread is already the thread on which the Runnable should be executed.
        Returns:
        true if the Runnable can be executed on the same thread.