Module tvbrowser
Package util.ui

Class UIThreadRunner


  • public class UIThreadRunner
    extends java.lang.Object
    run the given runnables always in the UI thread, regardless of calling thread
    Author:
    Bananeweizen
    • Constructor Summary

      Constructors 
      Constructor Description
      UIThreadRunner()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void invokeAndWait​(java.lang.Runnable runnable)  
      static void invokeLater​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

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

      • UIThreadRunner

        public UIThreadRunner()
    • Method Detail

      • invokeAndWait

        public static void invokeAndWait​(java.lang.Runnable runnable)
                                  throws java.lang.InterruptedException,
                                         java.lang.reflect.InvocationTargetException
        Throws:
        java.lang.InterruptedException
        java.lang.reflect.InvocationTargetException
      • invokeLater

        public static void invokeLater​(java.lang.Runnable runnable)