com.vaadin.client.extensions.
Interface EventTrigger
-
All Known Implementing Classes:
public interface EventTrigger
Provides support for triggering an event from a given parts of a component or using various events.
Used by features such as
FileDownloaderConnector
andBrowserWindowOpenerConnector
to listen to a given event on a given element. The component is the one responsible for deciding the element and the event to listen to.This is the client side interface.
If the component on the server side implements
com.vaadin.server.EventTrigger
then this interface should be implemented by theWidget
used by the client side connector.Since:
8.4
-
-
Method Summary
All Methods Modifier and Type Method Description com.google.web.bindery.event.shared.HandlerRegistration
addTrigger​(com.google.gwt.user.client.Command command, String partInformation)
Adds an appropriate event handler on the correct element inside the widget and invokes the given file downloader when the event occurs.
-
-
-
Method Detail
-
addTrigger
com.google.web.bindery.event.shared.HandlerRegistration addTrigger​(com.google.gwt.user.client.Command command, String partInformation)
Adds an appropriate event handler on the correct element inside the widget and invokes the given file downloader when the event occurs.
Parameters:
command
- The command to execute when the event occurspartInformation
- Information passed from the server, typically telling which element to attach the DOM handler toReturns:
a registration handler which can be used to remove the handler
-
-