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

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

Introduction

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

Prototype

public final String[] keys() 

Source Link

Usage

From source file:org.lirazs.gbackbone.client.core.view.View.java

License:Apache License

public View delegateEvents(Properties events) {
    if (events == null)
        events = this.events;
    if (events == null)
        events = events();//from   w w  w. j  a  v a  2  s  .co  m

    if (events == null) // couldn't find events anywhere.. just return
        return this;

    undelegateEvents();

    String[] keys = events.keys();
    for (String key : keys) {
        Function callback = events.getFunction(key);

        if (callback != null) {
            MatchResult matchResult = delegateEventSplitter.exec(key);
            delegate(matchResult.getGroup(1), matchResult.getGroup(2), callback);
        }
    }
    return this;
}