Package com.google.gwt.dom.client

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


      final Document document = Document.get();
      final Element element = getElement();
      final Element rowElement = element.appendChild(document
          .createDivElement());
      titleElement = rowElement.appendChild(document.createSpanElement());
      noteCountElement = rowElement.appendChild(document.createSpanElement());
      authorsElement = rowElement.appendChild(document.createDivElement());

      rowElement.setClassName("surface-item" + getNextStyleNameSuffix());
      titleElement.setClassName("surface-item-title");
      noteCountElement.setClassName("surface-item-count");
View Full Code Here


      final Element element = getElement();
      final Element rowElement = element.appendChild(document
          .createDivElement());
      titleElement = rowElement.appendChild(document.createSpanElement());
      noteCountElement = rowElement.appendChild(document.createSpanElement());
      authorsElement = rowElement.appendChild(document.createDivElement());

      rowElement.setClassName("surface-item" + getNextStyleNameSuffix());
      titleElement.setClassName("surface-item-title");
      noteCountElement.setClassName("surface-item-count");
      authorsElement.setClassName("surface-item-authors");
View Full Code Here

    clipElement.setId("ext-clip-" + ++clipId);
    clipPath.setAttribute("x", String.valueOf(rect.getX()));
    clipPath.setAttribute("y", String.valueOf(rect.getY()));
    clipPath.setAttribute("width", String.valueOf(rect.getWidth()));
    clipPath.setAttribute("height", String.valueOf(rect.getHeight()));
    clipElement.appendChild(clipPath);
    getDefinitions().appendChild(clipElement);
    getElement(sprite).setAttribute("clip-path", "url(#" + clipElement.getId() + ")");
    setClipElement(sprite, clipPath);
  }
View Full Code Here

    // Wrap each row into tspan to emulate rows
    String[] texts = sprite.getText().split("\n");
    for (int i = 0; i < texts.length; i++) {
      if (texts[i] != null) {
        Element tspan = createSVGElement("tspan");
        tspan.appendChild(XDOM.createTextNode(texts[i]));
        tspan.setAttribute("x", parentX);
        spriteElement.appendChild(tspan);
        tspans.add(tspan);
      }
    }
View Full Code Here

      getElement().appendChild(btn);

      if (config.getWidget() != null) {
        Element span = Document.get().createSpanElement().cast();
        widget = config.getWidget();
        span.appendChild(widget.getElement());
        getElement().appendChild(span);
      } else {
        text = new InlineHTML(config.getHeader() != null ? config.getHeader() : SafeHtmlUtils.fromString(""));
        getElement().appendChild(text.getElement());
      }
View Full Code Here

      errorIcon = new WidgetComponent(new Image(resources.errorIcon()));
      errorIcon.setHideMode(HideMode.VISIBILITY);
      errorIcon.hide();

      Element p = target.getElement().getParentElement();
      p.appendChild(errorIcon.getElement());

      errorIcon.getElement().setDisplayed(true);
      errorIcon.getElement().makePositionable(true);

    } else if (!errorIcon.getElement().isConnected()) {
View Full Code Here

    } else if (!errorIcon.getElement().isConnected()) {
      errorIcon.setHideMode(HideMode.VISIBILITY);
      errorIcon.hide();
      Element p = target.getElement().getParentElement();
      p.appendChild(errorIcon.getElement());
    }
   
    if (tip == null) {
      tip = new ToolTip(errorIcon, GWT.<SideErrorTooltipAppearance>create(SideErrorTooltipAppearance.class));
    }
View Full Code Here

    url.setInnerText(resource.getUrl());

    textElem.appendChild(path);
    textElem.appendChild(url);

    headerElem.appendChild(ImageResourceElementCreator.createElementFrom(icon));
    headerElem.appendChild(textElem);

    headerElem.setAttribute("title", resource.getUrl());
    elem.appendChild(headerElem);
View Full Code Here

    textElem.appendChild(path);
    textElem.appendChild(url);

    headerElem.appendChild(ImageResourceElementCreator.createElementFrom(icon));
    headerElem.appendChild(textElem);

    headerElem.setAttribute("title", resource.getUrl());
    elem.appendChild(headerElem);

    final DivElement indicatorElem = DocumentExt.get().createDivElement();
View Full Code Here

    headerElem.setAttribute("title", resource.getUrl());
    elem.appendChild(headerElem);

    final DivElement indicatorElem = DocumentExt.get().createDivElement();
    indicatorElem.setClassName(css.indicators());
    headerElem.appendChild(indicatorElem);

    indicatorContainer = new DefaultContainerImpl(indicatorElem);

    // Adds a hintlet indicator if the record has associated hintlets.
    addHintletIndicator(resource.getHintRecords());
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.