All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gwtopenmaps.openlayers.client.util.ElementHelper Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package org.gwtopenmaps.openlayers.client.util;


import com.google.gwt.user.client.Element;

/**
 *
 */
public class ElementHelper
{

	/**
	 * @return Element - the head element of the Document object of the topmost ancestor window
	 */
	public static native Element getHead() /*-{
		return $wnd.top.document.getElementsByTagName("head")[0];
	}-*/;

	/**
	 * @return Element - the Document object of the topmost ancestor window
	 *
	 */
	public static native Element getTopDocument() /*-{
		return $wnd.top.document;
	}-*/;

	public static native JSObject getElementsByTagName(Element parent, String tagName) /*-{
		return parent.getElementsByTagName(tagName);
	}-*/;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy