public interface EventTrigger extends Serializable
Used by features such as FileDownloader
and
BrowserWindowOpener
to listen to a given event on a given element on
the client side. The component is the one responsible for deciding the
element and the event to listen to and can communicate this to the client
using getPartInformation()
.
This is the server side interface.
If a Component
implements this interface, then the corresponding
connector on the client side must implement
com.vaadin.client.extensions.EventTrigger
.
Modifier and Type | Method and Description |
---|---|
AbstractClientConnector |
getConnector()
Gets the connector who will be used to offer the file download.
|
String |
getPartInformation()
Gets a free form string which identifies which part of the connector that
should trigger the download.
|
AbstractClientConnector getConnector()
String getPartInformation()
For example, MenuBar
passes the id of a menu item through this
method so that the client side can listen to events for that particular
item only.
Copyright © 2018 Vaadin Ltd. All rights reserved.