aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2012-12-10 10:37:31 +0100
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2012-12-10 10:37:31 +0100
commit901c8420e18e5ca971f4a208a91204d4934eaa9f (patch)
treeaa676f3d976939ef939e8b27040f696f4e0c1251 /gwtquery-core
parentb915257904c9e782918841c39fe2762fd82ef06c (diff)
downloadgwtquery-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.java7
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);