Examples of insertBefore()


Examples of com.extjs.gxt.ui.client.core.El.insertBefore()

    }
    shadow = shadows.size() > 0 ? shadows.pop() : null;
    if (shadow == null) {
      shadow = createShadow();
    }
    pn.insertBefore(shadow.dom, dom);
    shadow.setZIndex(getZIndex() - 1);
    return shadow;
  }

  /**
 
View Full Code Here

Examples of com.extjs.gxt.ui.client.core.El.insertBefore()

    }
    shim = shims.size() > 0 ? shims.pop() : null;
    if (shim == null) {
      shim = createShim();
    }
    pn.insertBefore(shim.dom, dom);
    shim.setZIndex(getZIndex() - 2);
    return shim;
  }

  /**
 
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.DomNode.insertBefore()

            if (append) {
                node.appendChild(childNode);
            }
            else {
                node.insertBefore(childNode);
            }
            return object;
        }
        throw Context.reportRuntimeError("Passed object is not an element: " + object);
    }
View Full Code Here

Examples of com.google.caja.parser.js.Block.insertBefore()

        md = new MultiDeclaration(
            FilePosition.span(pos, first.getFilePosition()),
            Collections.singletonList((Declaration) first));
        body.replaceChild(md, first);
      } else if (decls.size() == 1) {
        body.insertBefore(decls.get(0), first);
        return;
      } else {
        md = new MultiDeclaration(pos, Collections.<Declaration>emptyList());
        body.insertBefore(md, first);
      }
View Full Code Here

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

    if (!isIE6) {
      return super.attachChild(parent, child, before);
    }

    DivElement container = Document.get().createDivElement();
    container.insertBefore(child, before);

    container.getStyle().setPosition(Position.ABSOLUTE);
    container.getStyle().setOverflow(Overflow.HIDDEN);
    child.getStyle().setPosition(Position.ABSOLUTE);
View Full Code Here

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

      Document doc = Document.get();
      HeadElement head = (HeadElement) doc.getElementsByTagName("head").getItem(0);
      if (head == null)
      {
         head = doc.createHeadElement();
         doc.insertBefore(head, doc.getBody());
      }
      ScriptElement script = doc.createScriptElement(
            source);
      script.setType("text/javascript");
      head.appendChild(script);
View Full Code Here

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

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

        parent.removeChild(element);
        if (nextSibling == null) {
            parent.appendChild(element);
        } else {
            parent.insertBefore(element, nextSibling);
        }

    }

    public static void sinkOnloadForImages(Element element) {
View Full Code Here

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

      Element ref = index == 0 ? all.getElement(elements.length) : all.getElement(index - 1);

      for (int i = elements.length - 1; i >= 0; i--) {
        Node n = ref.getParentNode();
        if (index == 0) {
          n.insertBefore(elements[i], n.getFirstChild());
        } else {
          Node next = ref == null ? null : ref.getNextSibling();
          if (next == null) {
            n.appendChild(elements[i]);
          } else {
View Full Code Here

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

        String inputHtml = getInputHtml(selectionPolicy);
        Element td = createCell();
        td.setInnerHTML(inputHtml);
        for (int i = 0; i < numRows; i++) {
          Element tr = getRowFormatter().getElement(i);
          tr.insertBefore(td.cloneNode(true), tr.getFirstChildElement());
        }
      }
    } else if (this.selectionPolicy.hasInputColumn()) {
      // Remove the input column from every row
      for (int i = 0; i < numRows; i++) {
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.