Package de.richtercloud.message.handler
Class DisplayUtils
- java.lang.Object
-
- de.richtercloud.message.handler.DisplayUtils
-
public class DisplayUtils extends Object
- Author:
- richter
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TdisplayOnEDT(DisplayCallable<T> callable)InvokesDisplayCallable.call()ofcallableif the invoking thread is the EDT or invokescallableon the EDT.static <T> TdisplayOnJavaFXThread(DisplayCallable<T> callable)
-
-
-
Method Detail
-
displayOnJavaFXThread
public static <T> T displayOnJavaFXThread(DisplayCallable<T> callable)
-
displayOnEDT
public static <T> T displayOnEDT(DisplayCallable<T> callable)
InvokesDisplayCallable.call()ofcallableif the invoking thread is the EDT or invokescallableon the EDT.- Type Parameters:
T- the type of return value created bycallable- Parameters:
callable- the callable to produce the return value- Returns:
- the return value created by the callable
-
-