Package com.google.gwt.dom.client

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


        // Give each expanded child its own share
        for (Slot slot : widgetToSlot.values()) {

            Element slotElement = slot.getElement();
            slotElement.removeAttribute("aria-hidden");

            Style slotStyle = slotElement.getStyle();
            slotStyle.clearVisibility();
            slotStyle.clearMarginLeft();
            slotStyle.clearMarginTop();
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

                VConsole.log("drag start listeners hooked.");
            }
        } else {
            dragStartElement = null;
            if (div.hasAttribute(DRAGGABLE)) {
                div.removeAttribute(DRAGGABLE);
            }
        }
    }

    protected com.google.gwt.user.client.Element getDragStartElement() {
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

    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());
      char accessKey = tree.getAccessKey();
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.