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

org.stjs.javascript.dom.Document Maven / Gradle / Ivy

There is a newer version: 5.0.bv6
Show newest version
/**
 *  Copyright 2011 Alexandru Craciun, Eyal Kaspi
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.stjs.javascript.dom;

import org.stjs.javascript.Location;
import org.stjs.javascript.functions.Callback1;

abstract public class Document extends Node implements EventTarget {
	public String URL;
	public String documentURI;
	public HTMLCollection anchors;
	public Element body;
	public String cookie;
	public String domain;
	public HTMLCollection
forms; public HTMLCollection images; public HTMLCollection links; public String referrer; public String title; public Element documentElement; public Location location; public String readyState; public native HTMLList getElementsByName(String arg0); public native Element getElementById(String id); public native HTMLList getElementsByTagName(String tagName); public native void writeln(String arg0); public native void write(String arg0); public native void close(); public native void open(); public native Element createElement(String tagName); public native Text createTextNode(String data); public native Attr createAttribute(String name); @Override public native void addEventListener(String type, Callback1 listener); @Override public native void addEventListener(String type, Callback1 listener, boolean useCapture); @Override public native void removeEventListener(String type, Callback1 listener); @Override public native void removeEventListener(String type, Callback1 listener, boolean useCapture); @Override public native boolean dispatchEvent(DOMEvent event); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy