Package com.vaadin.swingkit.core
Class VaadinSwingEvent
java.lang.Object
com.vaadin.swingkit.core.VaadinSwingEvent
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionVaadinSwingEvent(String type) Creates a newVaadinSwingEventof the specified type with no parameters.VaadinSwingEvent(String type, HashMap<String, Serializable> params) Creates a newVaadinSwingEventof the specified type with the specified parameters. -
Method Summary
-
Constructor Details
-
VaadinSwingEvent
Creates a newVaadinSwingEventof the specified type with no parameters.- Parameters:
type- the type of the event.
-
VaadinSwingEvent
Creates a newVaadinSwingEventof the specified type with the specified parameters.- Parameters:
type- the type of the event.params- any parameters the event can hold.
-
-
Method Details
-
getParams
Get a copy of the event's parameters.- Returns:
- a copy of the event's parameters.
-
getType
Get the event's type.- Returns:
- the type of the event.
-