Class JavascriptInvokeBackground
- java.lang.Object
 - 
- com.inductiveautomation.perspective.designer.workspace.JavascriptInvokeBackground
 
 
- 
- All Implemented Interfaces:
 java.util.function.Supplier<JxValue>
public class JavascriptInvokeBackground extends java.lang.Object implements java.util.function.Supplier<JxValue>
Helper class that invokes methods in the javascript side of the designer safely on a background thread, turning the results into a CompletableFuture 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavascriptInvokeBackground.MissingFrameException 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JxValueget()static java.util.concurrent.CompletableFuture<JxValue>invoke(com.teamdev.jxbrowser.browser.Browser browser, java.lang.String objectPath, java.lang.String methodName, java.lang.Object... args)static java.util.concurrent.CompletableFuture<JxValue>invoke(com.teamdev.jxbrowser.js.JsObject jsObject, java.lang.String methodName, java.lang.Object... args) 
 - 
 
- 
- 
Method Detail
- 
invoke
public static java.util.concurrent.CompletableFuture<JxValue> invoke(@Nonnull com.teamdev.jxbrowser.browser.Browser browser, @Nonnull java.lang.String objectPath, @Nonnull java.lang.String methodName, @Nullable java.lang.Object... args)
 
- 
invoke
public static java.util.concurrent.CompletableFuture<JxValue> invoke(@Nonnull com.teamdev.jxbrowser.js.JsObject jsObject, java.lang.String methodName, java.lang.Object... args)
 
 - 
 
 -