Class JCefSwingJavascriptResponse

java.lang.Object
com.vaadin.swingkit.server.SwingJavascriptResponse
com.vaadin.swingkit.server.JCefSwingJavascriptResponse
All Implemented Interfaces:
EmbeddedBrowserJSCaller

public class JCefSwingJavascriptResponse extends SwingJavascriptResponse
JCef browser implementation of SwingJavascriptResponse
Author:
Vaadin Ltd
  • Constructor Details

    • JCefSwingJavascriptResponse

      public JCefSwingJavascriptResponse()
  • Method Details

    • getCheckDefinedJS

      public String getCheckDefinedJS()
      Description copied from interface: EmbeddedBrowserJSCaller
      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

      public String getQueryJS()
      Description copied from interface: EmbeddedBrowserJSCaller
      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

      public String getBrowserName()
      Description copied from interface: EmbeddedBrowserJSCaller
      Gets the embedded browser name as a String that is used by the caller implementation.
      Returns:
      Embedded Browser name used by the caller.