diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2012-12-10 10:37:31 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2012-12-10 10:37:31 +0100 |
commit | 901c8420e18e5ca971f4a208a91204d4934eaa9f (patch) | |
tree | aa676f3d976939ef939e8b27040f696f4e0c1251 /gwtquery-core | |
parent | b915257904c9e782918841c39fe2762fd82ef06c (diff) | |
download | gwtquery-901c8420e18e5ca971f4a208a91204d4934eaa9f.tar.gz gwtquery-901c8420e18e5ca971f4a208a91204d4934eaa9f.zip |
javadoc for method Properties.set(T, Function). Related with issue 154
Diffstat (limited to 'gwtquery-core')
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java index 4a2597a9..cc8d6b3f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java @@ -156,6 +156,13 @@ public class Properties extends JavaScriptObject { c().putBoolean(name, val); } + /** + * Adds a new native js function to the properties object. + * This native function will wrap the passed java Function. + * + * Its useful for exporting or importing to javascript. + * + */ public final native <T> void setFunction(T name, Function f) /*-{ this[name] = function() { f.@com.google.gwt.query.client.Function::fe(Ljava/lang/Object;)(arguments); |