Package com.vaadin.swingkit.server
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 TypeMethodDescriptionGets 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 forgetQueryJSare 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 forgetQueryJSare available.- Returns:
- A Javascript call checking that functions and contexts required for
getQueryJSare 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.
-