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

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

Introduction

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

Prototype

public final <T> T get(Object name) 

Source Link

Usage

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

License:Apache License

private boolean loadUrl(String fragmentOverride) {
    // If the root doesn't match, no routes can match either.
    if (!matchRoot())
        return false;

    String fragment = this.fragment = this.getFragment(fragmentOverride);

    for (int i = 0; i < handlers.length(); i++) {
        Properties handler = handlers.get(i);
        RegExp route = handler.get("route");
        Function callback = handler.getFunction("callback");

        if (route.test(fragment)) {
            callback.f(fragment);/*from ww w . ja  va2s.c  o m*/
            return true;
        }
    }

    return false;
}