diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-06-06 12:01:37 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-06-10 10:48:23 +0000 |
commit | e7201fd30803dbbd231c9a26745b21d5b807abc0 (patch) | |
tree | a246e6860e75e25ad9e8a5b159bd6944c1567ba9 /server | |
parent | d6fca7820739508387ae6db33af3a4a4fb5a846e (diff) | |
download | vaadin-framework-e7201fd30803dbbd231c9a26745b21d5b807abc0.tar.gz vaadin-framework-e7201fd30803dbbd231c9a26745b21d5b807abc0.zip |
Allow using element resize listeners from javascript connectors (#11996)
Change-Id: I97b280c2e260752be87ce85d2eda81ec4f14d4fe
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractJavaScriptComponent.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java b/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java index 0b3da768c9..6769b6e513 100644 --- a/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java +++ b/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java @@ -82,6 +82,16 @@ import com.vaadin.shared.ui.JavaScriptComponentState; * <li><code>translateVaadinUri(uri)</code> - Translates a Vaadin URI to a URL * that can be used in the browser. This is just way of accessing * {@link com.vaadin.client.ApplicationConnection#translateVaadinUri(String)}</li> + * <li><code>addResizeListener(element, callbackFunction)</code> - Registers a + * listener that gets notified whenever the size of the provided element + * changes. The listener is called with one parameter: an event object with the + * <code>element</code> property pointing to the element that has been resized. + * <li><code>removeResizeListener(element, callbackFunction)</code> - + * Unregisters a combination of an element and a listener that has previously + * been registered using <code>addResizeListener</code>. All registered + * listeners are automatically unregistered when this connector is unregistered, + * but this method can be use to to unregister a listener at an earlier point in + * time. * </ul> * The connector wrapper also supports these special functions: * <ul> |