public interface EventTrigger
Used by features such as FileDownloaderConnector and
BrowserWindowOpenerConnector 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 the Widget used by the client side connector.
| Modifier and Type | Method and 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.
|
com.google.web.bindery.event.shared.HandlerRegistration addTrigger(com.google.gwt.user.client.Command command,
String partInformation)
command - The command to execute when the event occurspartInformation - Information passed from the server, typically telling which
element to attach the DOM handler toCopyright © 2018 Vaadin Ltd. All rights reserved.