KickJava   Java API By Example, From Geeks To Geeks.

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


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: XHTMLInputElementImpl.java,v 1.2 2005/01/26 08:28:45 jkjome Exp $
23  */

24
25 package org.enhydra.xml.xhtml.dom.xerces;
26
27
28 public class XHTMLInputElementImpl
29     extends XHTMLElementImpl
30     implements org.enhydra.xml.xhtml.dom.XHTMLInputElement
31 {
32
33     public XHTMLInputElementImpl (XHTMLDocumentBase owner, String JavaDoc namespaceURI, String JavaDoc tagName) {
34     super( owner, namespaceURI, tagName);
35     }
36
37         public void setId (String JavaDoc newValue) {
38     setAttribute("id", newValue);
39     }
40
41     public String JavaDoc getId () {
42     return getAttribute ("id");
43     }
44     public void setLang (String JavaDoc newValue) {
45     setAttribute("lang", newValue);
46     }
47
48     public String JavaDoc getLang () {
49     return getAttribute ("lang");
50     }
51     public void setDir (String JavaDoc newValue) {
52     setAttribute("dir", newValue);
53     }
54
55     public String JavaDoc getDir () {
56     return getAttribute ("dir");
57     }
58     public void setClassName (String JavaDoc newValue) {
59     setAttribute("class", newValue);
60     }
61
62     public String JavaDoc getClassName () {
63     return getAttribute ("class");
64     }
65     public void setTitle (String JavaDoc newValue) {
66     setAttribute("title", newValue);
67     }
68
69     public String JavaDoc getTitle () {
70     return getAttribute ("title");
71     }
72     public void setName (String JavaDoc newValue) {
73     setAttribute("name", newValue);
74     }
75
76     public String JavaDoc getName () {
77     return getAttribute ("name");
78     }
79     public void setValue (String JavaDoc newValue) {
80     setAttribute("value", newValue);
81     }
82
83     public String JavaDoc getValue () {
84     return getAttribute ("value");
85     }
86     public void setType (String JavaDoc newValue) {
87     setAttribute("type", newValue);
88     }
89
90     public String JavaDoc getType () {
91     return getAttribute ("type");
92     }
93     public void setSize (String JavaDoc newValue) {
94     setAttribute("size", newValue);
95     }
96
97     public String JavaDoc getSize () {
98     return getAttribute ("size");
99     }
100     public void setAccessKey (String JavaDoc newValue) {
101     setAttribute("accesskey", newValue);
102     }
103
104     public String JavaDoc getAccessKey () {
105     return getAttribute ("accesskey");
106     }
107     public void setTabIndex (int newValue) {
108     setAttribute("tabindex", newValue);
109     }
110
111     public int getTabIndex () {
112     return getIntAttribute ("tabindex");
113     }
114     public void setAlign (String JavaDoc newValue) {
115     setAttribute("align", newValue);
116     }
117
118     public String JavaDoc getAlign () {
119     return getAttribute ("align");
120     }
121     public void setAlt (String JavaDoc newValue) {
122     setAttribute("alt", newValue);
123     }
124
125     public String JavaDoc getAlt () {
126     return getAttribute ("alt");
127     }
128     public void setDisabled (boolean newValue) {
129     setAttribute("disabled", newValue);
130     }
131
132     public boolean getDisabled () {
133     return getBooleanAttribute("disabled");
134     }
135     public void setAccept (String JavaDoc newValue) {
136     setAttribute("accept", newValue);
137     }
138
139     public String JavaDoc getAccept () {
140     return getAttribute ("accept");
141     }
142     public void setSrc (String JavaDoc newValue) {
143     setAttribute("src", newValue);
144     }
145
146     public String JavaDoc getSrc () {
147     return getAttribute ("src");
148     }
149     public void setUseMap (String JavaDoc newValue) {
150     setAttribute("usemap", newValue);
151     }
152
153     public String JavaDoc getUseMap () {
154     return getAttribute ("usemap");
155     }
156     public void setDefaultValue (String JavaDoc newValue) {
157     setAttribute("defaultvalue", newValue);
158     }
159
160     public String JavaDoc getDefaultValue () {
161     return getAttribute ("defaultvalue");
162     }
163     public void setDefaultChecked (boolean newValue) {
164     setAttribute("defaultchecked", newValue);
165     }
166
167     public boolean getDefaultChecked () {
168     return getBooleanAttribute("defaultchecked");
169     }
170     public void setChecked (boolean newValue) {
171     setAttribute("checked", newValue);
172     }
173
174     public boolean getChecked () {
175     return getBooleanAttribute("checked");
176     }
177     public void setMaxLength(int newValue) {
178     setAttribute("maxlength", newValue);
179     }
180
181     public int getMaxLength () {
182     return getIntAttribute("maxlength");
183     }
184     public void setReadOnly (boolean newValue) {
185     setAttribute("readonly", newValue);
186     }
187
188     public boolean getReadOnly () {
189     return getBooleanAttribute("readonly");
190     }
191     public void setOnKeyUp (String JavaDoc newValue) {
192     setAttribute("onkeyup", newValue);
193     }
194
195     public String JavaDoc getOnKeyUp () {
196     return getAttribute ("onkeyup");
197     }
198     public void setStyle (String JavaDoc newValue) {
199     setAttribute("style", newValue);
200     }
201
202     public String JavaDoc getStyle () {
203     return getAttribute ("style");
204     }
205     public void setOnMouseDown (String JavaDoc newValue) {
206     setAttribute("onmousedown", newValue);
207     }
208
209     public String JavaDoc getOnMouseDown () {
210     return getAttribute ("onmousedown");
211     }
212     public void setOnKeyPress (String JavaDoc newValue) {
213     setAttribute("onkeypress", newValue);
214     }
215
216     public String JavaDoc getOnKeyPress () {
217     return getAttribute ("onkeypress");
218     }
219     public void setOnDblClick (String JavaDoc newValue) {
220     setAttribute("ondblclick", newValue);
221     }
222
223     public String JavaDoc getOnDblClick () {
224     return getAttribute ("ondblclick");
225     }
226     public void setOnKeyDown (String JavaDoc newValue) {
227     setAttribute("onkeydown", newValue);
228     }
229
230     public String JavaDoc getOnKeyDown () {
231     return getAttribute ("onkeydown");
232     }
233     public void setOnMouseMove (String JavaDoc newValue) {
234     setAttribute("onmousemove", newValue);
235     }
236
237     public String JavaDoc getOnMouseMove () {
238     return getAttribute ("onmousemove");
239     }
240     public void setOnMouseUp (String JavaDoc newValue) {
241     setAttribute("onmouseup", newValue);
242     }
243
244     public String JavaDoc getOnMouseUp () {
245     return getAttribute ("onmouseup");
246     }
247     public void setXmlLang (String JavaDoc newValue) {
248     setAttribute("xml:lang", newValue);
249     }
250
251     public String JavaDoc getXmlLang () {
252     return getAttribute ("xml:lang");
253     }
254     public void setOnMouseOut (String JavaDoc newValue) {
255     setAttribute("onmouseout", newValue);
256     }
257
258     public String JavaDoc getOnMouseOut () {
259     return getAttribute ("onmouseout");
260     }
261     public void setOnClick (String JavaDoc newValue) {
262     setAttribute("onclick", newValue);
263     }
264
265     public String JavaDoc getOnClick () {
266     return getAttribute ("onclick");
267     }
268     public void setOnMouseOver (String JavaDoc newValue) {
269     setAttribute("onmouseover", newValue);
270     }
271
272     public String JavaDoc getOnMouseOver () {
273     return getAttribute ("onmouseover");
274     }
275     public void setOnBlur (String JavaDoc newValue) {
276     setAttribute("onblur", newValue);
277     }
278
279     public String JavaDoc getOnBlur () {
280     return getAttribute ("onblur");
281     }
282     public void setOnFocus (String JavaDoc newValue) {
283     setAttribute("onfocus", newValue);
284     }
285
286     public String JavaDoc getOnFocus () {
287     return getAttribute ("onfocus");
288     }
289     public void setOnSelect (String JavaDoc newValue) {
290     setAttribute("onselect", newValue);
291     }
292
293     public String JavaDoc getOnSelect () {
294     return getAttribute ("onselect");
295     }
296     public void setOnChange (String JavaDoc newValue) {
297     setAttribute("onchange", newValue);
298     }
299
300     public String JavaDoc getOnChange () {
301     return getAttribute ("onchange");
302     }
303 ;
304
305         
306     public void blur() {
307         // No scripting in server-side DOM. This method is moot.
308
}
309     
310     public void focus() {
311         // No scripting in server-side DOM. This method is moot.
312
}
313
314     public void select() {
315         // No scripting in server-side DOM. This method is moot.
316
}
317     
318     public void click() {
319         // No scripting in server-side DOM. This method is moot.
320
}
321
322
323
324 ;
325 }
326
327
328
Popular Tags