Example usage for com.google.gwt.query.client Properties set

List of usage examples for com.google.gwt.query.client Properties set

Introduction

In this page you can find the example usage for com.google.gwt.query.client Properties set.

Prototype

public final <T> void set(T name, Object val) 

Source Link

Usage

From source file:org.lirazs.gbackbone.client.core.data.Options.java

License:Apache License

public final Properties toProperties() {
    Properties props = Properties.create();
    for (String k : keySet()) {
        Object val = get(k);
        if (val instanceof Options) {
            props.set(k, ((Options) val).toProperties());
        } else if (val instanceof Function) {
            props.setFunction(k, (Function) val);
        } else {/*www. jav  a2  s.com*/
            props.set(k, val);
        }
    }

    return props;
}

From source file:org.lirazs.gbackbone.client.core.js.JsObject.java

License:Apache License

public final Properties toProperties() {
    Properties props = Properties.create();
    for (String k : keys()) {
        props.set(k, get(k));
    }//from   w ww  .  j  a va 2s.com

    return props;
}

From source file:org.lirazs.gbackbone.client.core.navigation.History.java

License:Apache License

/**
 *  Add a route to be tested when the fragment changes. Routes added later
 *  may override previous routes./* ww  w. j a v  a2s  .  com*/
 *
 * @param route
 * @param callback
 */
public void route(RegExp route, Function callback) {
    Properties properties = Properties.create();
    properties.set("route", route);
    properties.setFunction("callback", callback);

    this.handlers.unshift(properties);
}