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

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

Introduction

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

Prototype

BodyElement body

To view the source code for com.google.gwt.query.client GQuery body.

Click Source Link

Document

The body element in the current page.

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/*w  w  w.  j a  va 2 s  .c  o  m*/
        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);
}

From source file:gwtquery.plugins.draggable.client.impl.DraggableHandlerImpl.java

License:Apache License

public boolean resetParentOffsetPosition(GQuery helperOffsetParent) {
    return helperOffsetParent.get(0) == GQuery.body;
}

From source file:gwtquery.plugins.selectable.client.SelectableOptions.java

License:Apache License

protected void initDefault() {
    disabled = false;/*w  w w  .j  av  a 2 s.  c o  m*/
    autoRefresh = true;
    filter = "*";
    tolerance = Tolerance.TOUCH;
    appendTo = GQuery.body.getTagName();
    multiSelect = true;
    lassoOnMetaKey = false;
    super.initDefault();
}