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.HTMLIFrameElement; 30 31 32 38 public final class HTMLIFrameElementImpl extends HTMLElementImpl implements HTMLIFrameElement { 39 40 41 public String getAlign() { 42 return capitalize( getAttribute( "align" ) ); 43 } 44 45 46 public void setAlign( String align ) { 47 setAttribute( "align", align ); 48 } 49 50 51 public String getFrameBorder() { 52 return getAttribute( "frameborder" ); 53 } 54 55 56 public void setFrameBorder( String frameBorder ) { 57 setAttribute( "frameborder", frameBorder ); 58 } 59 60 61 public String getHeight() { 62 return getAttribute( "height" ); 63 } 64 65 66 public void setHeight( String height ) { 67 setAttribute( "height", height ); 68 } 69 70 71 public String getLongDesc() { 72 return getAttribute( "longdesc" ); 73 } 74 75 76 public void setLongDesc( String longDesc ) { 77 setAttribute( "longdesc", longDesc ); 78 } 79 80 81 public String getMarginHeight() { 82 return getAttribute( "marginheight" ); 83 } 84 85 86 public void setMarginHeight( String marginHeight ) { 87 setAttribute( "marginheight", marginHeight ); 88 } 89 90 91 public String getMarginWidth() { 92 return getAttribute( "marginwidth" ); 93 } 94 95 96 public void setMarginWidth( String marginWidth ) { 97 setAttribute( "marginwidth", marginWidth ); 98 } 99 100 101 public String getName() { 102 return getAttribute( "name" ); 103 } 104 105 106 public void setName( String name ) { 107 setAttribute( "name", name ); 108 } 109 110 111 public String getScrolling() { 112 return capitalize( getAttribute( "scrolling" ) ); 113 } 114 115 116 public void setScrolling( String scrolling ) { 117 setAttribute( "scrolling", scrolling ); 118 } 119 120 121 public String getSrc() { 122 return getAttribute( "src" ); 123 } 124 125 126 public void setSrc( String src ) { 127 setAttribute( "src", src ); 128 } 129 130 131 public String getWidth() { 132 return getAttribute( "width" ); 133 } 134 135 136 public void setWidth( String width ) { 137 setAttribute( "width", width ); 138 } 139 140 145 public Document getContentDocument() { 146 throw new DOMExceptionImpl( DOMException.NOT_SUPPORTED_ERR, 147 "HTMLIFrameElementImpl.getContentDocument(): ozone's persistent DOM doesn't support DOM level 2 yet." ); 148 149 } 150 151 156 public HTMLIFrameElementImpl( HTMLDocumentImpl owner, String name ) { 157 super( owner, "IFRAME" ); 158 } 159 160 161 } 162 | Popular Tags |