Examples of BodyElement


Examples of com.google.gwt.dom.client.BodyElement

      // listener
      // set. Though it is not dependable in the general case that a widget will
      // have set its element's event listener at all times, it *is* dependable
      // if the widget is attached. Which it will be in this case.
      element = element.getParentElement();
      BodyElement body = Document.get().getBody();
      while (element != null && body != element) {
         if (Event.getEventListener(element) != null) {
            return true;
         }
         element = element.getParentElement();
View Full Code Here

Examples of com.google.gwt.dom.client.BodyElement

    // Walk up the DOM hierarchy, looking for any widget with an event listener
    // set. Though it is not dependable in the general case that a widget will
    // have set its element's event listener at all times, it *is* dependable
    // if the widget is attached. Which it will be in this case.
    element = element.getParentElement();
    BodyElement body = Document.get().getBody();
    while ((element != null) && (body != element)) {
      if (Event.getEventListener(element) != null) {
        return true;
      }
      element = element.getParentElement().cast();
View Full Code Here

Examples of com.google.gwt.dom.client.BodyElement

    }

    scrollingDisabled = settings.isPreventScrolling();
    if (settings.isPreventScrolling() && getOsDetection().isIOs()) {
      BodyElement body = Document.get().getBody();
      setupPreventScrolling(body);

    }

    if (settings.isDisablePhoneNumberDetection()) {
View Full Code Here

Examples of com.google.gwt.dom.client.BodyElement

  public static int getScreenResolution() {
    return toPixelSize("1in", true);
  }

  public static Dimension getStringBoxSize(Element span, final String str) {
    final BodyElement body = Document.get().getBody();
    span.setInnerText(str);
    setStyleAttribute(span, "left", "");
    setStyleAttribute(span, "top", "");
    setStyleAttribute(span, "position", "absolute");
    setStyleAttribute(span, "visibility", "hidden");

    // force "auto" width
    setStyleAttribute(span, "width", "0px");
    setStyleAttribute(span, "height", "0px");

    span.getOffsetWidth();
    span.getOffsetHeight();

    setStyleAttribute(span, "width", "auto");
    setStyleAttribute(span, "height", "auto");

    try {
      body.appendChild(span);
      return getBoxSize(span);
    } finally {
      body.removeChild(span);
    }
  }
View Full Code Here

Examples of com.google.gwt.dom.client.BodyElement

    }
    super.setVisible(visible);
  }
 
  private void sizeToDocument() {
    BodyElement body = Document.get().getBody();
    glass.setSize(body.getScrollWidth() + "px", body.getScrollHeight() + "px");
  }
View Full Code Here

Examples of com.volantis.mcs.xdime.xhtml2.BodyElement

    protected String getElementName() {
        return "wizard";
    }

    public void testWidget() throws Exception {
        pushElement(new BodyElement(xdimeContext));
        executeTest();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.