Class VaadinSwingEvent

java.lang.Object
com.vaadin.swingkit.core.VaadinSwingEvent
All Implemented Interfaces:
Serializable

public final class VaadinSwingEvent extends Object implements Serializable

Represents an event that can be sent from a Vaadin app to a Swing app. The event can hold data as parameters which can be retrieved using the getParams() method, which returns a copy of its parameters.

This class and its parameters are immutable.

See Also:
  • Constructor Details

    • VaadinSwingEvent

      public VaadinSwingEvent(String type)
      Creates a new VaadinSwingEvent of the specified type with no parameters.
      Parameters:
      type - the type of the event.
    • VaadinSwingEvent

      public VaadinSwingEvent(String type, HashMap<String,Serializable> params)
      Creates a new VaadinSwingEvent of the specified type with the specified parameters.
      Parameters:
      type - the type of the event.
      params - any parameters the event can hold.
  • Method Details

    • getParams

      public HashMap<String,Serializable> getParams()
      Get a copy of the event's parameters.
      Returns:
      a copy of the event's parameters.
    • getType

      public String getType()
      Get the event's type.
      Returns:
      the type of the event.