Package com.vaadin.swingkit.core
Class VaadinSwingEventBuilder
java.lang.Object
com.vaadin.swingkit.core.VaadinSwingEventBuilder
A builder for
VaadinSwingEvent instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParam(String name, Serializable value) Add data to be added to the created events.build()Creates a newVaadinSwingEventinstance with the configuration of this builder.Removes all parameters from the builder.removeParam(String name) Removes a parameter.Set the type of events to create.
-
Constructor Details
-
VaadinSwingEventBuilder
Creates a builder ofVaadinSwingEventobjects of a certain type.- Parameters:
type- the type of events to create.- See Also:
-
-
Method Details
-
type
Set the type of events to create.- Parameters:
type- the type of events to create.- Returns:
- the same builder, for chaining calls.
- See Also:
-
addParam
Add data to be added to the created events.- Parameters:
name- the parameter key.value- the parameter value.- Returns:
- the same builder, for chaining calls.
-
removeParam
Removes a parameter.- Parameters:
name- the key of the parameter to remove.- Returns:
- the same builder, for chaining calls.
-
clearParams
Removes all parameters from the builder.- Returns:
- the same builder, for chaining calls.
-
build
Creates a newVaadinSwingEventinstance with the configuration of this builder.- Returns:
- a new
VaadinSwingEvent.
-