1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.Document ; 62 import org.w3c.dom.html.HTMLObjectElement; 63 64 65 71 public class HTMLObjectElementImpl 72 extends HTMLElementImpl 73 implements HTMLObjectElement, HTMLFormControl 74 { 75 76 77 78 public String getCode() 79 { 80 return getAttribute( "code" ); 81 } 82 83 84 public void setCode( String code ) 85 { 86 setAttribute( "code", code ); 87 } 88 89 90 public String getAlign() 91 { 92 return capitalize( getAttribute( "align" ) ); 93 } 94 95 96 public void setAlign( String align ) 97 { 98 setAttribute( "align", align ); 99 } 100 101 102 public String getArchive() 103 { 104 return getAttribute( "archive" ); 105 } 106 107 108 public void setArchive( String archive ) 109 { 110 setAttribute( "archive", archive ); 111 } 112 113 public String getBorder() 114 { 115 return getAttribute( "border" ); 116 } 117 118 119 public void setBorder( String border ) 120 { 121 setAttribute( "border", border ); 122 } 123 124 125 public String getCodeBase() 126 { 127 return getAttribute( "codebase" ); 128 } 129 130 131 public void setCodeBase( String codeBase ) 132 { 133 setAttribute( "codebase", codeBase ); 134 } 135 136 137 public String getCodeType() 138 { 139 return getAttribute( "codetype" ); 140 } 141 142 143 public void setCodeType( String codeType ) 144 { 145 setAttribute( "codetype", codeType ); 146 } 147 148 149 public String getData() 150 { 151 return getAttribute( "data" ); 152 } 153 154 155 public void setData( String data ) 156 { 157 setAttribute( "data", data ); 158 } 159 160 161 public boolean getDeclare() 162 { 163 return getBinary( "declare" ); 164 } 165 166 167 public void setDeclare( boolean declare ) 168 { 169 setAttribute( "declare", declare ); 170 } 171 172 173 public String getHeight() 174 { 175 return getAttribute( "height" ); 176 } 177 178 179 public void setHeight( String height ) 180 { 181 setAttribute( "height", height ); 182 } 183 184 185 public String getHspace() 186 { 187 return getAttribute( "hspace" ); 188 } 189 190 191 public void setHspace( String hspace ) 192 { 193 setAttribute( "hspace", hspace ); 194 } 195 196 public String getName() 197 { 198 return getAttribute( "name" ); 199 } 200 201 202 public void setName( String name ) 203 { 204 setAttribute( "name", name ); 205 } 206 207 208 public String getStandby() 209 { 210 return getAttribute( "standby" ); 211 } 212 213 214 public void setStandby( String standby ) 215 { 216 setAttribute( "standby", standby ); 217 } 218 219 public int getTabIndex() 220 { 221 try 222 { 223 return Integer.parseInt( getAttribute( "tabindex" ) ); 224 } 225 catch ( NumberFormatException except ) 226 { 227 return 0; 228 } 229 } 230 231 232 public void setTabIndex( int tabIndex ) 233 { 234 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 235 } 236 237 238 public String getType() 239 { 240 return getAttribute( "type" ); 241 } 242 243 244 public void setType( String type ) 245 { 246 setAttribute( "type", type ); 247 } 248 249 250 public String getUseMap() 251 { 252 return getAttribute( "useMap" ); 253 } 254 255 256 public void setUseMap( String useMap ) 257 { 258 setAttribute( "useMap", useMap ); 259 } 260 261 262 public String getVspace() 263 { 264 return getAttribute( "vspace" ); 265 } 266 267 268 public void setVspace( String vspace ) 269 { 270 setAttribute( "vspace", vspace ); 271 } 272 273 274 public String getWidth() 275 { 276 return getAttribute( "width" ); 277 } 278 279 280 public void setWidth( String width ) 281 { 282 setAttribute( "width", width ); 283 } 284 285 286 291 public HTMLObjectElementImpl( HTMLDocumentImpl owner, String name ) 292 { 293 super( owner, name ); 294 } 295 296 299 public Document getContentDocument() { 300 return null; 301 } 302 303 } 304 305 | Popular Tags |