aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-06-06 12:01:37 +0300
committerVaadin Code Review <review@vaadin.com>2013-06-10 10:48:23 +0000
commite7201fd30803dbbd231c9a26745b21d5b807abc0 (patch)
treea246e6860e75e25ad9e8a5b159bd6944c1567ba9 /server
parentd6fca7820739508387ae6db33af3a4a4fb5a846e (diff)
downloadvaadin-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.java10
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>