KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > xml > xhtml > dom > xerces > XHTMLObjectElementImpl


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Original Code is DigitalSesame
15  * Portions created by DigitalSesame are Copyright (C) 1997-2000 DigitalSesame
16  * All Rights Reserved.
17  *
18  * Contributor(s):
19  * Rex Tsai <chihchun@digitalsesame.com>
20  * David Li <david@digitalsesam.com>
21  *
22  * $Id: XHTMLObjectElementImpl.java,v 1.2 2005/01/26 08:29:24 jkjome Exp $
23  */

24
25 package org.enhydra.xml.xhtml.dom.xerces;
26
27 import org.enhydra.xml.dom.DOMOps;
28 import org.w3c.dom.Document JavaDoc;
29 import org.w3c.dom.html.HTMLIFrameElement;
30
31 public class XHTMLObjectElementImpl
32     extends XHTMLElementImpl
33     implements org.enhydra.xml.xhtml.dom.XHTMLObjectElement
34 {
35
36     public XHTMLObjectElementImpl (XHTMLDocumentBase owner, String JavaDoc namespaceURI, String JavaDoc tagName) {
37     super( owner, namespaceURI, tagName);
38     }
39
40         public void setId (String JavaDoc newValue) {
41     setAttribute("id", newValue);
42     }
43
44     public String JavaDoc getId () {
45     return getAttribute ("id");
46     }
47     public void setLang (String JavaDoc newValue) {
48     setAttribute("lang", newValue);
49     }
50
51     public String JavaDoc getLang () {
52     return getAttribute ("lang");
53     }
54     public void setDir (String JavaDoc newValue) {
55     setAttribute("dir", newValue);
56     }
57
58     public String JavaDoc getDir () {
59     return getAttribute ("dir");
60     }
61     public void setClassName (String JavaDoc newValue) {
62     setAttribute("class", newValue);
63     }
64
65     public String JavaDoc getClassName () {
66     return getAttribute ("class");
67     }
68     public void setTitle (String JavaDoc newValue) {
69     setAttribute("title", newValue);
70     }
71
72     public String JavaDoc getTitle () {
73     return getAttribute ("title");
74     }
75     public void setName (String JavaDoc newValue) {
76     setAttribute("name", newValue);
77     }
78
79     public String JavaDoc getName () {
80     return getAttribute ("name");
81     }
82     public void setType (String JavaDoc newValue) {
83     setAttribute("type", newValue);
84     }
85
86     public String JavaDoc getType () {
87     return getAttribute ("type");
88     }
89     public void setCodeBase (String JavaDoc newValue) {
90     setAttribute("codebase", newValue);
91     }
92
93     public String JavaDoc getCodeBase () {
94     return getAttribute ("codebase");
95     }
96     public void setTabIndex (int newValue) {
97     setAttribute("tabindex", newValue);
98     }
99
100     public int getTabIndex () {
101     return getIntAttribute ("tabindex");
102     }
103     public void setAlign (String JavaDoc newValue) {
104     setAttribute("align", newValue);
105     }
106
107     public String JavaDoc getAlign () {
108     return getAttribute ("align");
109     }
110     public void setArchive (String JavaDoc newValue) {
111     setAttribute("archive", newValue);
112     }
113
114     public String JavaDoc getArchive () {
115     return getAttribute ("archive");
116     }
117     public void setCode (String JavaDoc newValue) {
118     setAttribute("code", newValue);
119     }
120
121     public String JavaDoc getCode () {
122     return getAttribute ("code");
123     }
124     public void setHeight (String JavaDoc newValue) {
125     setAttribute("height", newValue);
126     }
127
128     public String JavaDoc getHeight () {
129     return getAttribute ("height");
130     }
131     public void setHspace (String JavaDoc newValue) {
132     setAttribute("hspace", newValue);
133     }
134
135     public String JavaDoc getHspace () {
136     return getAttribute ("hspace");
137     }
138     public void setVspace (String JavaDoc newValue) {
139     setAttribute("vspace", newValue);
140     }
141
142     public String JavaDoc getVspace () {
143     return getAttribute ("vspace");
144     }
145     public void setWidth (String JavaDoc newValue) {
146     setAttribute("width", newValue);
147     }
148
149     public String JavaDoc getWidth () {
150     return getAttribute ("width");
151     }
152     public void setBorder (String JavaDoc newValue) {
153     setAttribute("border", newValue);
154     }
155
156     public String JavaDoc getBorder () {
157     return getAttribute ("border");
158     }
159     public void setUseMap (String JavaDoc newValue) {
160     setAttribute("usemap", newValue);
161     }
162
163     public String JavaDoc getUseMap () {
164     return getAttribute ("usemap");
165     }
166     public void setCodeType (String JavaDoc newValue) {
167     setAttribute("codetype", newValue);
168     }
169
170     public String JavaDoc getCodeType () {
171     return getAttribute ("codetype");
172     }
173     public void setData (String JavaDoc newValue) {
174     setAttribute("data", newValue);
175     }
176
177     public String JavaDoc getData () {
178     return getAttribute ("data");
179     }
180     public void setDeclare (boolean newValue) {
181     setAttribute("declare", newValue);
182     }
183
184     public boolean getDeclare () {
185     return getBooleanAttribute("declare");
186     }
187     public void setStandby (String JavaDoc newValue) {
188     setAttribute("standby", newValue);
189     }
190
191     public String JavaDoc getStandby () {
192     return getAttribute ("standby");
193     }
194     public void setOnKeyUp (String JavaDoc newValue) {
195     setAttribute("onkeyup", newValue);
196     }
197
198     public String JavaDoc getOnKeyUp () {
199     return getAttribute ("onkeyup");
200     }
201     public void setStyle (String JavaDoc newValue) {
202     setAttribute("style", newValue);
203     }
204
205     public String JavaDoc getStyle () {
206     return getAttribute ("style");
207     }
208     public void setOnMouseDown (String JavaDoc newValue) {
209     setAttribute("onmousedown", newValue);
210     }
211
212     public String JavaDoc getOnMouseDown () {
213     return getAttribute ("onmousedown");
214     }
215     public void setOnKeyPress (String JavaDoc newValue) {
216     setAttribute("onkeypress", newValue);
217     }
218
219     public String JavaDoc getOnKeyPress () {
220     return getAttribute ("onkeypress");
221     }
222     public void setOnDblClick (String JavaDoc newValue) {
223     setAttribute("ondblclick", newValue);
224     }
225
226     public String JavaDoc getOnDblClick () {
227     return getAttribute ("ondblclick");
228     }
229     public void setOnKeyDown (String JavaDoc newValue) {
230     setAttribute("onkeydown", newValue);
231     }
232
233     public String JavaDoc getOnKeyDown () {
234     return getAttribute ("onkeydown");
235     }
236     public void setOnMouseMove (String JavaDoc newValue) {
237     setAttribute("onmousemove", newValue);
238     }
239
240     public String JavaDoc getOnMouseMove () {
241     return getAttribute ("onmousemove");
242     }
243     public void setOnMouseUp (String JavaDoc newValue) {
244     setAttribute("onmouseup", newValue);
245     }
246
247     public String JavaDoc getOnMouseUp () {
248     return getAttribute ("onmouseup");
249     }
250     public void setXmlLang (String JavaDoc newValue) {
251     setAttribute("xml:lang", newValue);
252     }
253
254     public String JavaDoc getXmlLang () {
255     return getAttribute ("xml:lang");
256     }
257     public void setOnMouseOut (String JavaDoc newValue) {
258     setAttribute("onmouseout", newValue);
259     }
260
261     public String JavaDoc getOnMouseOut () {
262     return getAttribute ("onmouseout");
263     }
264     public void setOnClick (String JavaDoc newValue) {
265     setAttribute("onclick", newValue);
266     }
267
268     public String JavaDoc getOnClick () {
269     return getAttribute ("onclick");
270     }
271     public void setOnMouseOver (String JavaDoc newValue) {
272     setAttribute("onmouseover", newValue);
273     }
274
275     public String JavaDoc getOnMouseOver () {
276     return getAttribute ("onmouseover");
277     }
278     public void setClassid (String JavaDoc newValue) {
279     setAttribute("classid", newValue);
280     }
281
282     public String JavaDoc getClassid () {
283     return getAttribute ("classid");
284     }
285
286     /** @see HTMLIFrameElement#getContentDocument() */
287     public Document JavaDoc getContentDocument() {
288     return DOMOps.getContentDocument(this);
289     }
290 }
291
292
293
Popular Tags