Example usage for com.google.gwt.query.client GQuery has

List of usage examples for com.google.gwt.query.client GQuery has

Introduction

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

Prototype

public GQuery has(final String selector) 

Source Link

Document

Reduce the set of matched elements to those that have a descendant that matches the selector.

Usage

From source file:com.arcbees.gquery.appear.client.Appear.java

License:Apache License

private void refreshScrollEvents() {
    final GQuery body = $(GQuery.body);
    $(new ArrayList<>(impls.keySet())).unbind(Event.ONSCROLL, ON_SCROLL_FUNCTION).filter(new Predicate() {
        @Override//www . j  av  a2s .  c  om
        public boolean f(Element e, int index) {
            return body.has(e).length() == 1;
        }
    }).parents().filter(new Predicate() {
        @Override
        public boolean f(Element e, int index) {
            return isScrollable(e);
        }
    }).scroll(ON_SCROLL_FUNCTION);
}