1 20 21 22 package org.ozoneDB.xml.dom.html; 23 24 25 import org.ozoneDB.xml.dom.DOMExceptionImpl; 26 import org.ozoneDB.xml.dom.ElementImpl; 27 import org.w3c.dom.DOMException ; 28 import org.w3c.dom.Document ; 29 import org.w3c.dom.html.HTMLFrameElement; 30 31 32 38 public final class HTMLFrameElementImpl extends HTMLElementImpl implements HTMLFrameElement { 39 40 41 public String getFrameBorder() { 42 return getAttribute( "frameborder" ); 43 } 44 45 46 public void setFrameBorder( String frameBorder ) { 47 setAttribute( "frameborder", frameBorder ); 48 } 49 50 51 public String getLongDesc() { 52 return getAttribute( "longdesc" ); 53 } 54 55 56 public void setLongDesc( String longDesc ) { 57 setAttribute( "longdesc", longDesc ); 58 } 59 60 61 public String getMarginHeight() { 62 return getAttribute( "marginheight" ); 63 } 64 65 66 public void setMarginHeight( String marginHeight ) { 67 setAttribute( "marginheight", marginHeight ); 68 } 69 70 71 public String getMarginWidth() { 72 return getAttribute( "marginwidth" ); 73 } 74 75 76 public void setMarginWidth( String marginWidth ) { 77 setAttribute( "marginwidth", marginWidth ); 78 } 79 80 81 public String getName() { 82 return getAttribute( "name" ); 83 } 84 85 86 public void setName( String name ) { 87 setAttribute( "name", name ); 88 } 89 90 91 public boolean getNoResize() { 92 return getAttribute( "noresize" ) != null; 93 } 94 95 96 public void setNoResize( boolean noResize ) { 97 setAttribute( "noresize", noResize ? "" : null ); 98 } 99 100 101 public String getScrolling() { 102 return capitalize( getAttribute( "scrolling" ) ); 103 } 104 105 106 public void setScrolling( String scrolling ) { 107 setAttribute( "scrolling", scrolling ); 108 } 109 110 111 public String getSrc() { 112 return getAttribute( "src" ); 113 } 114 115 116 public void setSrc( String src ) { 117 setAttribute( "src", src ); 118 } 119 120 125 public Document getContentDocument() { 126 throw new DOMExceptionImpl( DOMException.NOT_SUPPORTED_ERR, 127 "HTMLFrameElementImpl.getContentDocument(): ozone's persistent DOM doesn't support DOM level 2 yet." ); 128 } 129 130 135 public HTMLFrameElementImpl( HTMLDocumentImpl owner, String name ) { 136 super( owner, "FRAME" ); 137 } 138 139 140 } 141 | Popular Tags |