Package com.vaadin.swingkit.server
Class SwingServiceInitListener
java.lang.Object
com.vaadin.swingkit.server.SwingServiceInitListener
- All Implemented Interfaces:
com.vaadin.flow.server.ErrorHandler,com.vaadin.flow.server.VaadinServiceInitListener,Serializable,EventListener
@Component
public class SwingServiceInitListener
extends Object
implements com.vaadin.flow.server.VaadinServiceInitListener, com.vaadin.flow.server.ErrorHandler
Initialize the service of a view containing a
SwingBridge
automatically inserting the component if Bridge annotation is
present.- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(com.vaadin.flow.server.ErrorEvent event) OverridesErrorHandler.error(ErrorEvent)method to send an asynchronous event to Swing app when a not handle exception happens on Vaadin view.voidserviceInit(com.vaadin.flow.server.ServiceInitEvent event) OverridesVaadinServiceInitListener.serviceInit(ServiceInitEvent)method to insert SwingBridge component into the Vaadin view and set the Swing Kit error handler.
-
Constructor Details
-
SwingServiceInitListener
public SwingServiceInitListener()
-
-
Method Details
-
serviceInit
public void serviceInit(com.vaadin.flow.server.ServiceInitEvent event) OverridesVaadinServiceInitListener.serviceInit(ServiceInitEvent)method to insert SwingBridge component into the Vaadin view and set the Swing Kit error handler.- Specified by:
serviceInitin interfacecom.vaadin.flow.server.VaadinServiceInitListener
-
error
public void error(com.vaadin.flow.server.ErrorEvent event) OverridesErrorHandler.error(ErrorEvent)method to send an asynchronous event to Swing app when a not handle exception happens on Vaadin view.- Specified by:
errorin interfacecom.vaadin.flow.server.ErrorHandler
-