org.stjs.javascript.dom.Element Maven / Gradle / Ivy
The newest version!
/**
* Copyright 2011 Alexandru Craciun, Eyal Kaspi
*
* Licensed under the Apache License, Version 2.0 (the "License"){throw new UnsupportedOperationException();}
* 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.StyleSheet;
import org.stjs.javascript.Window;
import org.stjs.javascript.annotation.BrowserCompatibility;
import org.stjs.javascript.annotation.Compatibility;
import org.stjs.javascript.functions.Function1;
abstract public class Element extends Node {
public String className;
public String dir;
public String id;
public String lang;
public String title;
public String tagName;
public String innerHTML;
//TODO :: check the support
@BrowserCompatibility({ @Compatibility(browser = org.stjs.javascript.annotation.Compatibility.Browser.MSIE, from = 6.0, to = 8.0) })
public StyleSheet sheet;
//TODO :: check the support
public Window contentWindow;
//TODO :: check the support
public Document document;
//TODO :: check the support
public StyleSheet styleSheet;
public int clientHeight;
public int clientWidth;
public int height;
public int offsetHeight;
public int offsetLeft;
public Element offsetParent;
public int offsetTop;
public int offsetWidth;
public int scrollHeight;
public int scrollLeft;
public int scrollTop;
public int scrollWidth;
public int width;
// events
public Function1 onblur;
public Function1 onchange;
public Function1 onclick;
public Function1 ondblclick;
public Function1 onerror;
public Function1 onfocus;
public Function1 onkeydown;
public Function1 onkeypress;
public Function1 onkeyup;
public Function1 onmousedown;
public Function1 onmousemove;
public Function1 onmouseout;
public Function1 onmouseover;
public Function1 onmouseup;
public Function1 onselect;
public String getAttribute(String name) {
throw new UnsupportedOperationException();
}
public Attr getAttributeNode(String name) {
throw new UnsupportedOperationException();
}
// public getAttributeNodeNS(String, String)
// public getAttributeNS(String, String)
public HTMLList getElementsByTagName(String tag) {
throw new UnsupportedOperationException();
}
// public getElementsByTagNameNS(String, String)
// public getSchemaTypeInfo()
public boolean hasAttribute(String name) {
throw new UnsupportedOperationException();
}
// public hasAttributeNS(String, String)
public void removeAttribute(String name) {
throw new UnsupportedOperationException();
}
public void removeAttributeNode(Attr att) {
throw new UnsupportedOperationException();
}
// public removeAttributeNS(String, String)
public void setAttribute(String name, String value) {
throw new UnsupportedOperationException();
}
public void setAttributeNode(Attr name) {
throw new UnsupportedOperationException();
}
// public setAttributeNodeNS(Attr)
// public setAttributeNS(String, String, String)
public void setIdAttribute(String name, boolean id) {
throw new UnsupportedOperationException();
}
public void setIdAttributeNode(Attr attr, boolean id) {
throw new UnsupportedOperationException();
}
// public setIdAttributeNS(String, String, boolean)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy