Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.Element.insertBefore()


        if (node.isTextNode()) {
          ((ContentTextNode) node).normaliseImpl();
        }
        Node nodelet = node.getImplNodelet();
        if (nodelet != null) {
          containerNodelet.insertBefore(nodelet, implRef);
        }
      }
    } else {
      if (oldContainerNodelet != null) {
        for (ContentNode node = from; node != toExcl; node = node.getNextSibling()) {
View Full Code Here


   */
  public final void insertBefore(NodeList<Element> elements) {
    Element parent = getParentElement();
    assert parent != null : "cannot insertBefore with null parent";
    for (int i = 0, len = elements.getLength(); i < len; i++) {
      parent.insertBefore(elements.getItem(0), this);
    }
  }

  /**
   * Inserts an element at the specified index.
View Full Code Here

            Element container = getElement().getParentElement();

            if (isShadowEnabled()) {
                updateShadowPosition(progress, zIndex, positionAndSize);
                if (shadow.getParentElement() == null) {
                    container.insertBefore(shadow, getElement());
                    sinkShadowEvents();
                }
            }

            if (needsShimElement()) {
View Full Code Here

            }

            if (needsShimElement()) {
                updateShimPosition(positionAndSize);
                if (shimElement.getParentElement() == null) {
                    container.insertBefore(shimElement, getElement());
                }
            }
        }
        // Fix for #14173
        // IE9 and IE10 have a bug, when resize an a element with box-shadow.
View Full Code Here

          : commonCss.odd();
      final Element elem = Document.get().createElement("div");
      elem.setClassName(className);
      elem.getStyle().setPropertyPx("padding", 4);
      Element thisElem = getElement();
      thisElem.insertBefore(elem, thisElem.getFirstChild());
      return elem;
    }
   
    Element createErrorEntry() {
      final String className = (((errorCounter++) & 1) == 1) ? css.evenError()
View Full Code Here

          : css.oddError();
      final Element elem = Document.get().createElement("div");
      elem.setClassName(className);
      elem.getStyle().setPropertyPx("padding", 4);
      Element thisElem = getElement();
      thisElem.insertBefore(elem, thisElem.getFirstChild());
      return elem;
    }
  }

  // TODO (knorton): refactor to topspin Label.
View Full Code Here

   */
  public final void insertBefore(NodeList<Element> elements) {
    Element parent = getParentElement();
    assert parent != null : "cannot insertBefore with null parent";
    for (int i = 0, len = elements.getLength(); i < len; i++) {
      parent.insertBefore(elements.getItem(0), this);
    }
  }

  /**
   * Inserts an element at the specified index.
View Full Code Here

            before = null;
        }
        optgroup.increment();
               
        OptionElement option = createOption(item, value);
        parent.insertBefore(option, before);
    }

    @Override
    public boolean isItemSelected(int index) {
        OptionElement option = getOption(index);
View Full Code Here

        if (node.isTextNode()) {
          ((ContentTextNode) node).normaliseImpl();
        }
        Node nodelet = node.getImplNodelet();
        if (nodelet != null) {
          containerNodelet.insertBefore(nodelet, implRef);
        }
      }
    } else {
      if (oldContainerNodelet != null) {
        for (ContentNode node = from; node != toExcl; node = node.getNextSibling()) {
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.