package textbender.o.rhinohide.html; // Copyright 2007, Michael Allan. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Textbender Software"), to deal in the Textbender Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Textbender Software, and to permit persons to whom the Textbender Software is furnished to do so, subject to the following conditions: The preceding copyright notice and this permission notice shall be included in all copies or substantial portions of the Textbender Software. THE TEXTBENDER SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE TEXTBENDER SOFTWARE OR THE USE OR OTHER DEALINGS IN THE TEXTBENDER SOFTWARE. import netscape.javascript.*; import org.w3c.dom.html.*; import textbender.g.lang.*; import textbender.o.rhinohide.*; import textbender.o.rhinohide.core.*; /** An HTML element implemented as an overlay of a JavaScript HTML element. */ public @ThreadSafe final class RhiHTMLElement extends RhiElement implements HTMLElement { /** Constructs a RhiHTMLElement. * * @param window global object * @param jsObject bridge to underlying JavaScript element, * per {@linkplain Rhinohide#jsObject() jsObject}() * * @return element, or null if jsObject is null * * @throws IllegalArgumentException if jsObject is neither null * nor an element */ public static RhiHTMLElement wrapHTMLElement( RhiWindow window, JSObject jsObject ) { return wrapHTMLElement( window, jsObject, /*doTypeCheck*/true ); } public static RhiHTMLElement wrapHTMLElement( RhiWindow window, JSObject jsObject, boolean doTypeCheck ) { if( jsObject == null ) return null; if( doTypeCheck ) ensureNodeType( new Rhinohide(window,jsObject), ELEMENT_NODE ); return new RhiHTMLElement( window, jsObject ); } public RhiHTMLElement( RhiWindow window, JSObject jsObject ) { super( window, jsObject ); } // - H T M L - E l e m e n t ---------------------------------------------------------- /** Not yet coded. * * @throws UnsupportedOperationException */ public String getClassName() { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public void setClassName( String className ) { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public String getDir() { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public void setDir( String dir ) { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public String getId() { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public void setId( String id ) { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public String getLang() { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public void setLang( String lang ) { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public String getTitle() { throw new UnsupportedOperationException(); } /** Not yet coded. * * @throws UnsupportedOperationException */ public void setTitle( String title ) { throw new UnsupportedOperationException(); } }