Package com.google.gwt.dom.client

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


    if (!selected) {
      // Chrome: Elements remain focusable after removing the tabIndex, so set
      // it to -1 first.
      cellParent.setTabIndex(-1);
      cellParent.removeAttribute("tabIndex");
      cellParent.removeAttribute("accessKey");
    } else {
      FocusImpl focusImpl = FocusImpl.getFocusImplForWidget();
      focusImpl.setTabIndex(cellParent, tree.getTabIndex());
      char accessKey = tree.getAccessKey();
      if (accessKey != 0) {
View Full Code Here


    if (name.equals(AnnotationPaint.LINK_ATTR)) {
      if (newValue != null) {
        String scrubbedValue = Scrub.scrub(newValue);
        implNodelet.setAttribute("href", scrubbedValue);
        if (scrubbedValue.startsWith("#")) {
          implNodelet.removeAttribute("target");
        } else {
          implNodelet.setAttribute("target", "_blank");
        }
      } else {
        implNodelet.removeAttribute("href");
View Full Code Here

          implNodelet.removeAttribute("target");
        } else {
          implNodelet.setAttribute("target", "_blank");
        }
      } else {
        implNodelet.removeAttribute("href");
      }
    } else if (name.equals(AnnotationPaint.MOUSE_LISTENER_ATTR)) {
      updateEventHandler(element, newValue);
    } else {
      try {
View Full Code Here

  @Override
  public void setTitle(String title) {
    Element containerElement = getContainerElement();
    if (title == null || title.length() == 0) {
      containerElement.removeAttribute("title");
    } else {
      containerElement.setAttribute("title", title);
    }
  }
View Full Code Here

    if (keyboardSelection == null) {
      return;
    }
    Element child =
      keyboardSelection.getFirstChildElement().getFirstChildElement();
    child.removeAttribute("tabIndex");
    child.removeClassName(tree.getStyle().keyboardSelectedItem());
    keyboardSelection = null;
    keyboardFocused = false;
  }
View Full Code Here

    public void updateTitle(boolean truncating) {

        String title = getTitle(truncating);
        Element element = getElement();
        if (title == null) {
            element.removeAttribute(DomUtil.Attribute.title.name());
        } else {
            element.setAttribute(DomUtil.Attribute.title.name(), title);
        }
    }
View Full Code Here

  Element wrapImpl(Node node) {
    Element nextRoot = (Element) templateRoot.cloneNode(true);
    hiddenDiv.appendChild(nextRoot);
    Element nextAttach = DOM.getElementById(decoratorId);
    nextAttach.removeAttribute("id");
    nextAttach.appendChild(node);

    // clear the hidden div.
    Node removed = hiddenDiv.removeChild(nextRoot);
    assert (removed != null);
View Full Code Here

  @Override
  public void setTitle(String title) {
    Element containerElement = getContainerElement();
    if (title == null || title.length() == 0) {
      containerElement.removeAttribute("title");
    } else {
      containerElement.setAttribute("title", title);
    }
  }
View Full Code Here

  @Override
  public void setTitle(String title) {
    Element containerElement = getContainerElement();
    if (title == null || title.length() == 0) {
      containerElement.removeAttribute("title");
    } else {
      containerElement.setAttribute("title", title);
    }
  }
View Full Code Here

    Element cellParent = getCellParent();
    if (!selected) {
      // Chrome: Elements remain focusable after removing the tabIndex, so set
      // it to -1 first.
      cellParent.setTabIndex(-1);
      cellParent.removeAttribute("tabIndex");
      cellParent.removeAttribute("accessKey");
    } else {
      FocusImpl focusImpl = FocusImpl.getFocusImplForWidget();
      com.google.gwt.user.client.Element cellElem = cellParent.cast();
      focusImpl.setTabIndex(cellElem, tree.getTabIndex());
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.