Package com.vaadin.swingkit.server
Class EventEmitter
java.lang.Object
com.vaadin.swingkit.server.EventEmitter
- All Implemented Interfaces:
EmbeddedBrowserJSCaller
Abstract class to be extended by embedded browsers implementations to emit
asynchronous events from Vaadin side to Swing side. It implements
EmbeddedBrowserJSCaller interface.- Author:
- Vaadin Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.page.PendingJavaScriptResultvoidemit(VaadinSwingEvent event) Method to emit aVaadinSwingEventfrom a Vaadin view that will be received by the JVaadinPanel hosting the view on the Swing app.protected com.vaadin.flow.component.page.PendingJavaScriptResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.swingkit.server.EmbeddedBrowserJSCaller
getBrowserName, getCheckDefinedJS, getQueryJS
-
Constructor Details
-
EventEmitter
public EventEmitter()
-
-
Method Details
-
emit
Method to emit aVaadinSwingEventfrom a Vaadin view that will be received by the JVaadinPanel hosting the view on the Swing app. Handler of this event has to be implemented on the Swing app and can recognize the event usinggetType- Parameters:
event- TheVaadinSwingEventemitted- Throws:
EmbeddedBrowserException- Thrown if no SwingKit embedded browser is detected.
-
checkContext
protected com.vaadin.flow.component.page.PendingJavaScriptResult checkContext() -
executeQuery
protected com.vaadin.flow.component.page.PendingJavaScriptResult executeQuery()
-