blob: 2003092602e704871ad368beb515336abd449a30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package gwtquery.client;
import com.google.gwt.core.client.JavaScriptObject;
/**
*
*/
public class Properties extends JavaScriptObject {
protected Properties() { }
public native static Properties create(String properties) /*-{
return eval(properties);
}-*/;
public final native String get(String name) /*-{
return this[name];
}-*/;
public final native int getInt(String name) /*-{
return this[name];
}-*/;
public final native float getFloat(String name) /*-{
return this[name];
}-*/;
public final native String[] keys() /*-{
var key, keys=[];
for(key in this) {
keys.push(key);
}
return keys;
}-*/;
}
|