Interface EmbeddedBrowserJSCaller

All Known Implementing Classes:
EventEmitter, JCefSwingJavascriptResponse, JxBrowserSwingJavascriptResponse, SwingJavascriptResponse

public interface EmbeddedBrowserJSCaller
Interface describing what a caller should provide to be able to communicate from Vaadin side to Swing side using javascript predefined functions by the embedded browser.
Author:
Vaadin Ltd
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the embedded browser name as a String that is used by the caller implementation.
    Gets a Javascript call as a String checking that functions and contexts required for getQueryJS are available.
    Gets a Javascript call with the function to be called from the Vaadin view to communicate to the Swing app.
  • Method Details

    • getCheckDefinedJS

      String getCheckDefinedJS()
      Gets a Javascript call as a String checking that functions and contexts required for getQueryJS are available.
      Returns:
      A Javascript call checking that functions and contexts required for getQueryJS are available.
    • getQueryJS

      String getQueryJS()
      Gets a Javascript call with the function to be called from the Vaadin view to communicate to the Swing app. This function must be provided and defined by the embedded browser.
      Returns:
      A Javascript call with the main function of the caller.
    • getBrowserName

      String getBrowserName()
      Gets the embedded browser name as a String that is used by the caller implementation.
      Returns:
      Embedded Browser name used by the caller.