Class 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JxValue get()  
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
      • get

        public JxValue get()
        Specified by:
        get in interface java.util.function.Supplier<JxValue>