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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    error(com.vaadin.flow.server.ErrorEvent event)
    Overrides ErrorHandler.error(ErrorEvent) method to send an asynchronous event to Swing app when a not handle exception happens on Vaadin view.
    void
    serviceInit(com.vaadin.flow.server.ServiceInitEvent event)
    Overrides VaadinServiceInitListener.serviceInit(ServiceInitEvent) method to insert SwingBridge component into the Vaadin view and set the Swing Kit error handler.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SwingServiceInitListener

      public SwingServiceInitListener()
  • Method Details

    • serviceInit

      public void serviceInit(com.vaadin.flow.server.ServiceInitEvent event)
      Overrides VaadinServiceInitListener.serviceInit(ServiceInitEvent) method to insert SwingBridge component into the Vaadin view and set the Swing Kit error handler.
      Specified by:
      serviceInit in interface com.vaadin.flow.server.VaadinServiceInitListener
    • error

      public void error(com.vaadin.flow.server.ErrorEvent event)
      Overrides ErrorHandler.error(ErrorEvent) method to send an asynchronous event to Swing app when a not handle exception happens on Vaadin view.
      Specified by:
      error in interface com.vaadin.flow.server.ErrorHandler