Package com.google.gwt.dom.client

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


      } else {
        return Point.inElement(parent, nextSibling);
      }
    } finally {
      if (elem != null) {
        elem.removeFromParent();
      }
    }
  }

  @SuppressWarnings("unused") // NOTE(user): may be used later
View Full Code Here


    setContainerNodelet(null); // clear any old container nodelet just in case
    setImplNodelets(renderer.createDomImpl(this), getContainerNodelet()); // reset both nodelets
    assert getImplNodelet() == null || NodeManager.getBackReference(getImplNodelet()) == this;

    if (oldNodelet != null) {
      oldNodelet.removeFromParent();
    } else {
    }
  }

View Full Code Here

          overElement = null;
        }

        getSelectionModel().deselect(index);

        e.removeFromParent();
        all.remove(index);
        updateIndexes(index, -1);
      }
    }
  }
View Full Code Here

      bufferRender(list, sb);

      DomHelper.insertBefore(original, sb.toSafeHtml().asString());

      all.replaceElement(original, Element.as(original.getPreviousSibling()));
      original.removeFromParent();

    }
    sm.onRowUpdated(model);
  }
View Full Code Here

   * @param row the row index
   */
  protected void removeRow(int row) {
    Element r = getRow(row);
    if (r != null) {
      r.removeFromParent();
    }
  }

  /**
   * Renders the footer.
View Full Code Here

      if (stack != null) {
        stack.remove(child);
      }

      Element item = findItem(idx);
      item.removeFromParent();

      if (child == activeWidget) {
        Widget next = stack != null ? stack.next() : null;
        if (next != null) {
          setActiveWidget(next);
View Full Code Here

      if (stack != null) {
        stack.remove(child);
      }

      Element item = findItem(idx);
      item.removeFromParent();

      if (child == activeWidget) {
        Widget next = stack != null ? stack.next() : null;
        if (next != null) {
          setActiveWidget(next);
View Full Code Here

    Element div = DOM.createDiv();
    div.setInnerHTML(html);
    Element firstChild = div.getFirstChildElement();
    // support text node creation
    if (firstChild != null) {
      firstChild.removeFromParent();
    }
    return ((firstChild != null) ? firstChild : div).cast();
  }

  /**
 
View Full Code Here

                         "." + styles.normalSize() + " pre" +
                         " {font-size:" + size + "pt !important;}");
      document.getBody().appendChild(style);

      if (oldStyle != null)
         oldStyle.removeFromParent();

      style.setId(STYLE_EL_ID);
   }
}
View Full Code Here

          overElement = null;
        }

        getSelectionModel().deselect(index);

        e.removeFromParent();
        all.remove(index);
        updateIndexes(index, -1);
      }
    }
  }
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.