Example usage for com.google.gwt.dom.client Document createBaseElement

List of usage examples for com.google.gwt.dom.client Document createBaseElement

Introduction

In this page you can find the example usage for com.google.gwt.dom.client Document createBaseElement.

Prototype

public BaseElement createBaseElement() 

Source Link

Usage

From source file:org.chromium.distiller.PagingLinksFinder.java

License:Open Source License

public static AnchorElement createAnchorWithBase(String base_url) {
    Document doc = DomUtil.createHTMLDocument(Document.get());

    BaseElement base = doc.createBaseElement();
    base.setHref(base_url);/*from   ww w  . j a  v a 2s . c  om*/
    doc.getHead().appendChild(base);

    AnchorElement a = doc.createAnchorElement();
    doc.getBody().appendChild(a);
    return a;
}