Imported GNU Classpath 0.90
[official-gcc.git] / libjava / classpath / gnu / xml / dom / html2 / DomHTMLObjectElement.java
blob9bb621122a45889abc41762d139d7fdf07d985ad
1 /* DomHTMLObjectElement.java --
2 Copyright (C) 2005 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 02110-1301 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 package gnu.xml.dom.html2;
40 import org.w3c.dom.Document;
41 import org.w3c.dom.html2.HTMLFormElement;
42 import org.w3c.dom.html2.HTMLObjectElement;
44 /**
45 * An HTML 'OBJECT' element node.
47 * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
49 public class DomHTMLObjectElement
50 extends DomHTMLElement
51 implements HTMLObjectElement
54 protected DomHTMLObjectElement(DomHTMLDocument owner, String namespaceURI,
55 String name)
57 super(owner, namespaceURI, name);
60 public HTMLFormElement getForm()
62 return (HTMLFormElement) getParentElement("form");
65 public String getCode()
67 return getHTMLAttribute("code");
70 public void setCode(String code)
72 setHTMLAttribute("code", code);
75 public String getJavaCode()
77 return getHTMLAttribute("java_code");
80 public void setJavaCode(String code)
82 setHTMLAttribute("java_code", code);
85 public String getObject()
87 return getHTMLAttribute("object");
90 public void setObject(String obj)
92 setHTMLAttribute("object", obj);
95 public String getJavaObject()
97 return getHTMLAttribute("java_object");
100 public void setJavaObject(String obj)
102 setHTMLAttribute("java_object", obj);
105 public String getAlign()
107 return getHTMLAttribute("align");
110 public void setAlign(String align)
112 setHTMLAttribute("align", align);
115 public String getArchive()
117 return getHTMLAttribute("archive");
120 public void setArchive(String archive)
122 setHTMLAttribute("archive", archive);
125 public String getJavaArchive()
127 return getHTMLAttribute("java_archive");
130 public void setJavaArchive(String archive)
132 setHTMLAttribute("java_archive", archive);
135 public String getBorder()
137 return getHTMLAttribute("border");
140 public void setBorder(String border)
142 setHTMLAttribute("border", border);
145 public String getCodeBase()
147 return getHTMLAttribute("codebase");
150 public void setCodeBase(String codeBase)
152 setHTMLAttribute("codebase", codeBase);
155 public String getJavaCodeBase()
157 return getHTMLAttribute("java_codebase");
160 public void setJavaCodeBase(String codeBase)
162 setHTMLAttribute("java_codebase", codeBase);
165 public String getCodeType()
167 return getHTMLAttribute("codetype");
170 public void setCodeType(String codeType)
172 setHTMLAttribute("codetype", codeType);
175 public String getData()
177 return getHTMLAttribute("data");
180 public void setData(String data)
182 setHTMLAttribute("data", data);
185 public boolean getDeclare()
187 return getBooleanHTMLAttribute("declare");
190 public void setDeclare(boolean declare)
192 setBooleanHTMLAttribute("declare", declare);
195 public String getHeight()
197 return getHTMLAttribute("height");
200 public void setHeight(String height)
202 setHTMLAttribute("height", height);
205 public int getHspace()
207 return getIntHTMLAttribute("hspace");
210 public void setHspace(int hspace)
212 setIntHTMLAttribute("hspace", hspace);
215 public String getName()
217 return getHTMLAttribute("name");
220 public void setName(String name)
222 setHTMLAttribute("name", name);
225 public String getStandby()
227 return getHTMLAttribute("standby");
230 public void setStandby(String standby)
232 setHTMLAttribute("standby", standby);
235 public int getTabIndex()
237 return getIntHTMLAttribute("tabindex");
240 public void setTabIndex(int tabIndex)
242 setIntHTMLAttribute("tabindex", tabIndex);
245 public String getType()
247 return getHTMLAttribute("type");
250 public void setType(String type)
252 setHTMLAttribute("type", type);
255 public String getJavaType()
257 return getHTMLAttribute("java_type");
260 public void setJavaType(String type)
262 setHTMLAttribute("java_type", type);
265 public String getUseMap()
267 return getHTMLAttribute("usemap");
270 public void setUseMap(String useMap)
272 setHTMLAttribute("usemap", useMap);
275 public int getVspace()
277 return getIntHTMLAttribute("vspace");
280 public void setVspace(int vspace)
282 setIntHTMLAttribute("vspace", vspace);
285 public String getWidth()
287 return getHTMLAttribute("width");
290 public void setWidth(String width)
292 setHTMLAttribute("width", width);
295 public Document getContentDocument()
297 // TODO getContentDocument
298 return null;
301 public void setMayscript(String may)
303 setHTMLAttribute("mayscript", may);
306 public String getMayscript()
308 return getHTMLAttribute("mayscript");
311 public void setScriptable(String scr)
313 setHTMLAttribute("scriptable", scr);
316 public String getScriptable()
318 return getHTMLAttribute("scriptable");