1 package org.enhydra.xml.xmlc.dom.generic; 2 3 import org.enhydra.xml.xmlc.XMLObjectLink; 4 import org.w3c.dom.DOMException ; 5 import org.w3c.dom.Node ; 6 import org.w3c.dom.NodeList ; 7 import org.w3c.dom.html.HTMLCollection; 8 import org.w3c.dom.html.HTMLDocument; 9 import org.w3c.dom.html.HTMLElement; 10 11 15 public class GenericLinkedHTMLDocument extends GenericLinkedDocument 16 implements HTMLDocument { 17 21 public GenericLinkedHTMLDocument(HTMLDocument inner) { 22 super(inner); 23 } 24 25 26 public Node cloneNode(boolean deep) { 27 GenericLinkedHTMLDocument clone = 30 new GenericLinkedHTMLDocument( 31 (HTMLDocument)DELEGATE.cloneNode(deep)); 32 clone.setXMLObject(getXMLObject()); 33 return clone; 34 } 35 36 39 public String getTitle() { 40 return ((HTMLDocument)DELEGATE).getTitle(); 41 } 42 public void setTitle(String title) { 43 ((HTMLDocument)DELEGATE).setTitle(title); 44 } 45 46 public String getReferrer() { 47 return ((HTMLDocument)DELEGATE).getReferrer(); 48 } 49 50 public String getDomain() { 51 return ((HTMLDocument)DELEGATE).getDomain(); 52 } 53 54 public String getURL() { 55 return ((HTMLDocument)DELEGATE).getURL(); 56 } 57 58 public HTMLElement getBody() { 59 return ((HTMLDocument)DELEGATE).getBody(); 60 } 61 public void setBody(HTMLElement body) { 62 ((HTMLDocument)DELEGATE).setBody(body); 63 } 64 65 public HTMLCollection getImages() { 66 return ((HTMLDocument)DELEGATE).getImages(); 67 } 68 69 public HTMLCollection getApplets() { 70 return ((HTMLDocument)DELEGATE).getApplets(); 71 } 72 73 public HTMLCollection getLinks() { 74 return ((HTMLDocument)DELEGATE).getLinks(); 75 } 76 77 public HTMLCollection getForms() { 78 return ((HTMLDocument)DELEGATE).getForms(); 79 } 80 81 public HTMLCollection getAnchors() { 82 return ((HTMLDocument)DELEGATE).getAnchors(); 83 } 84 85 public String getCookie() { 86 return ((HTMLDocument)DELEGATE).getCookie(); 87 } 88 public void setCookie(String cookie) throws DOMException { 89 ((HTMLDocument)DELEGATE).setCookie(cookie); 90 } 91 92 public void open() { 93 ((HTMLDocument)DELEGATE).open(); 94 } 95 96 public void close() { 97 ((HTMLDocument)DELEGATE).close(); 98 } 99 100 public void write(String text) { 101 ((HTMLDocument)DELEGATE).write(text); 102 } 103 104 public void writeln(String text) { 105 ((HTMLDocument)DELEGATE).writeln(text); 106 } 107 108 public NodeList getElementsByName(String elementName) { 109 return ((HTMLDocument)DELEGATE).getElementsByName(elementName); 110 } 111 112 } 113 | Popular Tags |