KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > strutsel > taglib > html > ELImageTag


1 /*
2  * $Id: ELImageTag.java 54933 2004-10-16 17:04:52Z germuska $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.strutsel.taglib.html;
20
21 import org.apache.struts.taglib.html.ImageTag;
22 import javax.servlet.jsp.JspException JavaDoc;
23 import org.apache.strutsel.taglib.utils.EvalHelper;
24
25 /**
26  * Tag for input fields of type "image".
27  *<p>
28  * This class is a subclass of the class
29  * <code>org.apache.struts.taglib.html.ImageTag</code> which provides most of
30  * the described functionality. This subclass allows all attribute values to
31  * be specified as expressions utilizing the JavaServer Pages Standard Library
32  * expression language.
33  *
34  * @version $Rev: 54933 $
35  */

36 public class ELImageTag extends ImageTag {
37
38     /**
39      * Instance variable mapped to "accessKey" tag attribute.
40      * (Mapping set in associated BeanInfo class.)
41      */

42     private String JavaDoc accessKeyExpr;
43     /**
44      * Instance variable mapped to "align" tag attribute.
45      * (Mapping set in associated BeanInfo class.)
46      */

47     private String JavaDoc alignExpr;
48     /**
49      * Instance variable mapped to "alt" tag attribute.
50      * (Mapping set in associated BeanInfo class.)
51      */

52     private String JavaDoc altExpr;
53     /**
54      * Instance variable mapped to "altKey" tag attribute.
55      * (Mapping set in associated BeanInfo class.)
56      */

57     private String JavaDoc altKeyExpr;
58     /**
59      * Instance variable mapped to "border" tag attribute.
60      * (Mapping set in associated BeanInfo class.)
61      */

62     private String JavaDoc borderExpr;
63     /**
64      * Instance variable mapped to "bundle" tag attribute.
65      * (Mapping set in associated BeanInfo class.)
66      */

67     private String JavaDoc bundleExpr;
68     /**
69      * Instance variable mapped to "disabled" tag attribute.
70      * (Mapping set in associated BeanInfo class.)
71      */

72     private String JavaDoc disabledExpr;
73     /**
74      * Instance variable mapped to "indexed" tag attribute.
75      * (Mapping set in associated BeanInfo class.)
76      */

77     private String JavaDoc indexedExpr;
78     /**
79      * Instance variable mapped to "locale" tag attribute.
80      * (Mapping set in associated BeanInfo class.)
81      */

82     private String JavaDoc localeExpr;
83     /**
84      * Instance variable mapped to "onblur" tag attribute.
85      * (Mapping set in associated BeanInfo class.)
86      */

87     private String JavaDoc onblurExpr;
88     /**
89      * Instance variable mapped to "onchange" tag attribute.
90      * (Mapping set in associated BeanInfo class.)
91      */

92     private String JavaDoc onchangeExpr;
93     /**
94      * Instance variable mapped to "onclick" tag attribute.
95      * (Mapping set in associated BeanInfo class.)
96      */

97     private String JavaDoc onclickExpr;
98     /**
99      * Instance variable mapped to "ondblclick" tag attribute.
100      * (Mapping set in associated BeanInfo class.)
101      */

102     private String JavaDoc ondblclickExpr;
103     /**
104      * Instance variable mapped to "onfocus" tag attribute.
105      * (Mapping set in associated BeanInfo class.)
106      */

107     private String JavaDoc onfocusExpr;
108     /**
109      * Instance variable mapped to "onkeydown" tag attribute.
110      * (Mapping set in associated BeanInfo class.)
111      */

112     private String JavaDoc onkeydownExpr;
113     /**
114      * Instance variable mapped to "onkeypress" tag attribute.
115      * (Mapping set in associated BeanInfo class.)
116      */

117     private String JavaDoc onkeypressExpr;
118     /**
119      * Instance variable mapped to "onkeyup" tag attribute.
120      * (Mapping set in associated BeanInfo class.)
121      */

122     private String JavaDoc onkeyupExpr;
123     /**
124      * Instance variable mapped to "onmousedown" tag attribute.
125      * (Mapping set in associated BeanInfo class.)
126      */

127     private String JavaDoc onmousedownExpr;
128     /**
129      * Instance variable mapped to "onmousemove" tag attribute.
130      * (Mapping set in associated BeanInfo class.)
131      */

132     private String JavaDoc onmousemoveExpr;
133     /**
134      * Instance variable mapped to "onmouseout" tag attribute.
135      * (Mapping set in associated BeanInfo class.)
136      */

137     private String JavaDoc onmouseoutExpr;
138     /**
139      * Instance variable mapped to "onmouseover" tag attribute.
140      * (Mapping set in associated BeanInfo class.)
141      */

142     private String JavaDoc onmouseoverExpr;
143     /**
144      * Instance variable mapped to "onmouseup" tag attribute.
145      * (Mapping set in associated BeanInfo class.)
146      */

147     private String JavaDoc onmouseupExpr;
148     /**
149      * Instance variable mapped to "page" tag attribute.
150      * (Mapping set in associated BeanInfo class.)
151      */

152     private String JavaDoc pageExpr;
153     /**
154      * Instance variable mapped to "pageKey" tag attribute.
155      * (Mapping set in associated BeanInfo class.)
156      */

157     private String JavaDoc pageKeyExpr;
158     /**
159      * Instance variable mapped to "property" tag attribute.
160      * (Mapping set in associated BeanInfo class.)
161      */

162     private String JavaDoc propertyExpr;
163     /**
164      * Instance variable mapped to "src" tag attribute.
165      * (Mapping set in associated BeanInfo class.)
166      */

167     private String JavaDoc srcExpr;
168     /**
169      * Instance variable mapped to "srcKey" tag attribute.
170      * (Mapping set in associated BeanInfo class.)
171      */

172     private String JavaDoc srcKeyExpr;
173     /**
174      * Instance variable mapped to "style" tag attribute.
175      * (Mapping set in associated BeanInfo class.)
176      */

177     private String JavaDoc styleExpr;
178     /**
179      * Instance variable mapped to "styleClass" tag attribute.
180      * (Mapping set in associated BeanInfo class.)
181      */

182     private String JavaDoc styleClassExpr;
183     /**
184      * Instance variable mapped to "styleId" tag attribute.
185      * (Mapping set in associated BeanInfo class.)
186      */

187     private String JavaDoc styleIdExpr;
188     /**
189      * Instance variable mapped to "tabindex" tag attribute.
190      * (Mapping set in associated BeanInfo class.)
191      */

192     private String JavaDoc tabindexExpr;
193     /**
194      * Instance variable mapped to "title" tag attribute.
195      * (Mapping set in associated BeanInfo class.)
196      */

197     private String JavaDoc titleExpr;
198     /**
199      * Instance variable mapped to "titleKey" tag attribute.
200      * (Mapping set in associated BeanInfo class.)
201      */

202     private String JavaDoc titleKeyExpr;
203     /**
204      * Instance variable mapped to "value" tag attribute.
205      * (Mapping set in associated BeanInfo class.)
206      */

207     private String JavaDoc valueExpr;
208
209     /**
210      * Getter method for "accessKey" tag attribute.
211      * (Mapping set in associated BeanInfo class.)
212      */

213     public String JavaDoc getAccesskeyExpr() { return (accessKeyExpr); }
214     /**
215      * Getter method for "align" tag attribute.
216      * (Mapping set in associated BeanInfo class.)
217      */

218     public String JavaDoc getAlignExpr() { return (alignExpr); }
219     /**
220      * Getter method for "alt" tag attribute.
221      * (Mapping set in associated BeanInfo class.)
222      */

223     public String JavaDoc getAltExpr() { return (altExpr); }
224     /**
225      * Getter method for "altKey" tag attribute.
226      * (Mapping set in associated BeanInfo class.)
227      */

228     public String JavaDoc getAltKeyExpr() { return (altKeyExpr); }
229     /**
230      * Getter method for "border" tag attribute.
231      * (Mapping set in associated BeanInfo class.)
232      */

233     public String JavaDoc getBorderExpr() { return (borderExpr); }
234     /**
235      * Getter method for "bundle" tag attribute.
236      * (Mapping set in associated BeanInfo class.)
237      */

238     public String JavaDoc getBundleExpr() { return (bundleExpr); }
239     /**
240      * Getter method for "disabled" tag attribute.
241      * (Mapping set in associated BeanInfo class.)
242      */

243     public String JavaDoc getDisabledExpr() { return (disabledExpr); }
244     /**
245      * Getter method for "indexed" tag attribute.
246      * (Mapping set in associated BeanInfo class.)
247      */

248     public String JavaDoc getIndexedExpr() { return (indexedExpr); }
249     /**
250      * Getter method for "locale" tag attribute.
251      * (Mapping set in associated BeanInfo class.)
252      */

253     public String JavaDoc getLocaleExpr() { return (localeExpr); }
254     /**
255      * Getter method for "onblur" tag attribute.
256      * (Mapping set in associated BeanInfo class.)
257      */

258     public String JavaDoc getOnblurExpr() { return (onblurExpr); }
259     /**
260      * Getter method for "onchange" tag attribute.
261      * (Mapping set in associated BeanInfo class.)
262      */

263     public String JavaDoc getOnchangeExpr() { return (onchangeExpr); }
264     /**
265      * Getter method for "onclick" tag attribute.
266      * (Mapping set in associated BeanInfo class.)
267      */

268     public String JavaDoc getOnclickExpr() { return (onclickExpr); }
269     /**
270      * Getter method for "ondblclick" tag attribute.
271      * (Mapping set in associated BeanInfo class.)
272      */

273     public String JavaDoc getOndblclickExpr() { return (ondblclickExpr); }
274     /**
275      * Getter method for "onfocus" tag attribute.
276      * (Mapping set in associated BeanInfo class.)
277      */

278     public String JavaDoc getOnfocusExpr() { return (onfocusExpr); }
279     /**
280      * Getter method for "onkeydown" tag attribute.
281      * (Mapping set in associated BeanInfo class.)
282      */

283     public String JavaDoc getOnkeydownExpr() { return (onkeydownExpr); }
284     /**
285      * Getter method for "onkeypress" tag attribute.
286      * (Mapping set in associated BeanInfo class.)
287      */

288     public String JavaDoc getOnkeypressExpr() { return (onkeypressExpr); }
289     /**
290      * Getter method for "onkeyup" tag attribute.
291      * (Mapping set in associated BeanInfo class.)
292      */

293     public String JavaDoc getOnkeyupExpr() { return (onkeyupExpr); }
294     /**
295      * Getter method for "onmousedown" tag attribute.
296      * (Mapping set in associated BeanInfo class.)
297      */

298     public String JavaDoc getOnmousedownExpr() { return (onmousedownExpr); }
299     /**
300      * Getter method for "onmousemove" tag attribute.
301      * (Mapping set in associated BeanInfo class.)
302      */

303     public String JavaDoc getOnmousemoveExpr() { return (onmousemoveExpr); }
304     /**
305      * Getter method for "onmouseout" tag attribute.
306      * (Mapping set in associated BeanInfo class.)
307      */

308     public String JavaDoc getOnmouseoutExpr() { return (onmouseoutExpr); }
309     /**
310      * Getter method for "onmouseover" tag attribute.
311      * (Mapping set in associated BeanInfo class.)
312      */

313     public String JavaDoc getOnmouseoverExpr() { return (onmouseoverExpr); }
314     /**
315      * Getter method for "onmouseup" tag attribute.
316      * (Mapping set in associated BeanInfo class.)
317      */

318     public String JavaDoc getOnmouseupExpr() { return (onmouseupExpr); }
319     /**
320      * Getter method for "page" tag attribute.
321      * (Mapping set in associated BeanInfo class.)
322      */

323     public String JavaDoc getPageExpr() { return (pageExpr); }
324     /**
325      * Getter method for "pageKey" tag attribute.
326      * (Mapping set in associated BeanInfo class.)
327      */

328     public String JavaDoc getPageKeyExpr() { return (pageKeyExpr); }
329     /**
330      * Getter method for "property" tag attribute.
331      * (Mapping set in associated BeanInfo class.)
332      */

333     public String JavaDoc getPropertyExpr() { return (propertyExpr); }
334     /**
335      * Getter method for "src" tag attribute.
336      * (Mapping set in associated BeanInfo class.)
337      */

338     public String JavaDoc getSrcExpr() { return (srcExpr); }
339     /**
340      * Getter method for "srcKey" tag attribute.
341      * (Mapping set in associated BeanInfo class.)
342      */

343     public String JavaDoc getSrcKeyExpr() { return (srcKeyExpr); }
344     /**
345      * Getter method for "style" tag attribute.
346      * (Mapping set in associated BeanInfo class.)
347      */

348     public String JavaDoc getStyleExpr() { return (styleExpr); }
349     /**
350      * Getter method for "styleClass" tag attribute.
351      * (Mapping set in associated BeanInfo class.)
352      */

353     public String JavaDoc getStyleClassExpr() { return (styleClassExpr); }
354     /**
355      * Getter method for "styleId" tag attribute.
356      * (Mapping set in associated BeanInfo class.)
357      */

358     public String JavaDoc getStyleIdExpr() { return (styleIdExpr); }
359     /**
360      * Getter method for "tabindex" tag attribute.
361      * (Mapping set in associated BeanInfo class.)
362      */

363     public String JavaDoc getTabindexExpr() { return (tabindexExpr); }
364     /**
365      * Getter method for "title" tag attribute.
366      * (Mapping set in associated BeanInfo class.)
367      */

368     public String JavaDoc getTitleExpr() { return (titleExpr); }
369     /**
370      * Getter method for "titleKey" tag attribute.
371      * (Mapping set in associated BeanInfo class.)
372      */

373     public String JavaDoc getTitleKeyExpr() { return (titleKeyExpr); }
374     /**
375      * Getter method for "value" tag attribute.
376      * (Mapping set in associated BeanInfo class.)
377      */

378     public String JavaDoc getValueExpr() { return (valueExpr); }
379
380     /**
381      * Setter method for "accessKey" tag attribute.
382      * (Mapping set in associated BeanInfo class.)
383      */

384     public void setAccesskeyExpr(String JavaDoc accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; }
385     /**
386      * Setter method for "align" tag attribute.
387      * (Mapping set in associated BeanInfo class.)
388      */

389     public void setAlignExpr(String JavaDoc alignExpr) { this.alignExpr = alignExpr; }
390     /**
391      * Setter method for "alt" tag attribute.
392      * (Mapping set in associated BeanInfo class.)
393      */

394     public void setAltExpr(String JavaDoc altExpr) { this.altExpr = altExpr; }
395     /**
396      * Setter method for "altKey" tag attribute.
397      * (Mapping set in associated BeanInfo class.)
398      */

399     public void setAltKeyExpr(String JavaDoc altKeyExpr) { this.altKeyExpr = altKeyExpr; }
400     /**
401      * Setter method for "border" tag attribute.
402      * (Mapping set in associated BeanInfo class.)
403      */

404     public void setBorderExpr(String JavaDoc borderExpr) { this.borderExpr = borderExpr; }
405     /**
406      * Setter method for "bundle" tag attribute.
407      * (Mapping set in associated BeanInfo class.)
408      */

409     public void setBundleExpr(String JavaDoc bundleExpr) { this.bundleExpr = bundleExpr; }
410     /**
411      * Setter method for "disabled" tag attribute.
412      * (Mapping set in associated BeanInfo class.)
413      */

414     public void setDisabledExpr(String JavaDoc disabledExpr) { this.disabledExpr = disabledExpr; }
415     /**
416      * Setter method for "indexed" tag attribute.
417      * (Mapping set in associated BeanInfo class.)
418      */

419     public void setIndexedExpr(String JavaDoc indexedExpr) { this.indexedExpr = indexedExpr; }
420     /**
421      * Setter method for "locale" tag attribute.
422      * (Mapping set in associated BeanInfo class.)
423      */

424     public void setLocaleExpr(String JavaDoc localeExpr) { this.localeExpr = localeExpr; }
425     /**
426      * Setter method for "onblur" tag attribute.
427      * (Mapping set in associated BeanInfo class.)
428      */

429     public void setOnblurExpr(String JavaDoc onblurExpr) { this.onblurExpr = onblurExpr; }
430     /**
431      * Setter method for "onchange" tag attribute.
432      * (Mapping set in associated BeanInfo class.)
433      */

434     public void setOnchangeExpr(String JavaDoc onchangeExpr) { this.onchangeExpr = onchangeExpr; }
435     /**
436      * Setter method for "onclick" tag attribute.
437      * (Mapping set in associated BeanInfo class.)
438      */

439     public void setOnclickExpr(String JavaDoc onclickExpr) { this.onclickExpr = onclickExpr; }
440     /**
441      * Setter method for "ondblclick" tag attribute.
442      * (Mapping set in associated BeanInfo class.)
443      */

444     public void setOndblclickExpr(String JavaDoc ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; }
445     /**
446      * Setter method for "onfocus" tag attribute.
447      * (Mapping set in associated BeanInfo class.)
448      */

449     public void setOnfocusExpr(String JavaDoc onfocusExpr) { this.onfocusExpr = onfocusExpr; }
450     /**
451      * Setter method for "onkeydown" tag attribute.
452      * (Mapping set in associated BeanInfo class.)
453      */

454     public void setOnkeydownExpr(String JavaDoc onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; }
455     /**
456      * Setter method for "onkeypress" tag attribute.
457      * (Mapping set in associated BeanInfo class.)
458      */

459     public void setOnkeypressExpr(String JavaDoc onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; }
460     /**
461      * Setter method for "onkeyup" tag attribute.
462      * (Mapping set in associated BeanInfo class.)
463      */

464     public void setOnkeyupExpr(String JavaDoc onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; }
465     /**
466      * Setter method for "onmousedown" tag attribute.
467      * (Mapping set in associated BeanInfo class.)
468      */

469     public void setOnmousedownExpr(String JavaDoc onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; }
470     /**
471      * Setter method for "onmousemove" tag attribute.
472      * (Mapping set in associated BeanInfo class.)
473      */

474     public void setOnmousemoveExpr(String JavaDoc onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; }
475     /**
476      * Setter method for "onmouseout" tag attribute.
477      * (Mapping set in associated BeanInfo class.)
478      */

479     public void setOnmouseoutExpr(String JavaDoc onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; }
480     /**
481      * Setter method for "onmouseover" tag attribute.
482      * (Mapping set in associated BeanInfo class.)
483      */

484     public void setOnmouseoverExpr(String JavaDoc onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; }
485     /**
486      * Setter method for "onmouseup" tag attribute.
487      * (Mapping set in associated BeanInfo class.)
488      */

489     public void setOnmouseupExpr(String JavaDoc onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; }
490     /**
491      * Setter method for "page" tag attribute.
492      * (Mapping set in associated BeanInfo class.)
493      */

494     public void setPageExpr(String JavaDoc pageExpr) { this.pageExpr = pageExpr; }
495     /**
496      * Setter method for "pageKey" tag attribute.
497      * (Mapping set in associated BeanInfo class.)
498      */

499     public void setPageKeyExpr(String JavaDoc pageKeyExpr) { this.pageKeyExpr = pageKeyExpr; }
500     /**
501      * Setter method for "property" tag attribute.
502      * (Mapping set in associated BeanInfo class.)
503      */

504     public void setPropertyExpr(String JavaDoc propertyExpr) { this.propertyExpr = propertyExpr; }
505     /**
506      * Setter method for "src" tag attribute.
507      * (Mapping set in associated BeanInfo class.)
508      */

509     public void setSrcExpr(String JavaDoc srcExpr) { this.srcExpr = srcExpr; }
510     /**
511      * Setter method for "srcKey" tag attribute.
512      * (Mapping set in associated BeanInfo class.)
513      */

514     public void setSrcKeyExpr(String JavaDoc srcKeyExpr) { this.srcKeyExpr = srcKeyExpr; }
515     /**
516      * Setter method for "style" tag attribute.
517      * (Mapping set in associated BeanInfo class.)
518      */

519     public void setStyleExpr(String JavaDoc styleExpr) { this.styleExpr = styleExpr; }
520     /**
521      * Setter method for "styleClass" tag attribute.
522      * (Mapping set in associated BeanInfo class.)
523      */

524     public void setStyleClassExpr(String JavaDoc styleClassExpr) { this.styleClassExpr = styleClassExpr; }
525     /**
526      * Setter method for "styleId" tag attribute.
527      * (Mapping set in associated BeanInfo class.)
528      */

529     public void setStyleIdExpr(String JavaDoc styleIdExpr) { this.styleIdExpr = styleIdExpr; }
530     /**
531      * Setter method for "tabindex" tag attribute.
532      * (Mapping set in associated BeanInfo class.)
533      */

534     public void setTabindexExpr(String JavaDoc tabindexExpr) { this.tabindexExpr = tabindexExpr; }
535     /**
536      * Setter method for "title" tag attribute.
537      * (Mapping set in associated BeanInfo class.)
538      */

539     public void setTitleExpr(String JavaDoc titleExpr) { this.titleExpr = titleExpr; }
540     /**
541      * Setter method for "titleKey" tag attribute.
542      * (Mapping set in associated BeanInfo class.)
543      */

544     public void setTitleKeyExpr(String JavaDoc titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; }
545     /**
546      * Setter method for "value" tag attribute.
547      * (Mapping set in associated BeanInfo class.)
548      */

549     public void setValueExpr(String JavaDoc valueExpr) { this.valueExpr = valueExpr; }
550
551     /**
552      * Resets attribute values for tag reuse.
553      */

554     public void release()
555     {
556         super.release();
557         setAccesskeyExpr(null);
558         setAlignExpr(null);
559         setAltExpr(null);
560         setAltKeyExpr(null);
561         setBorderExpr(null);
562         setBundleExpr(null);
563         setDisabledExpr(null);
564         setIndexedExpr(null);
565         setLocaleExpr(null);
566         setOnblurExpr(null);
567         setOnchangeExpr(null);
568         setOnclickExpr(null);
569         setOndblclickExpr(null);
570         setOnfocusExpr(null);
571         setOnkeydownExpr(null);
572         setOnkeypressExpr(null);
573         setOnkeyupExpr(null);
574         setOnmousedownExpr(null);
575         setOnmousemoveExpr(null);
576         setOnmouseoutExpr(null);
577         setOnmouseoverExpr(null);
578         setOnmouseupExpr(null);
579         setPageExpr(null);
580         setPageKeyExpr(null);
581         setPropertyExpr(null);
582         setSrcExpr(null);
583         setSrcKeyExpr(null);
584         setStyleExpr(null);
585         setStyleClassExpr(null);
586         setStyleIdExpr(null);
587         setTabindexExpr(null);
588         setTitleExpr(null);
589         setTitleKeyExpr(null);
590         setValueExpr(null);
591     }
592
593     /**
594      * Process the start tag.
595      *
596      * @exception JspException if a JSP exception has occurred
597      */

598     public int doStartTag() throws JspException JavaDoc {
599         evaluateExpressions();
600         return (super.doStartTag());
601     }
602
603     /**
604      * Processes all attribute values which use the JSTL expression evaluation
605      * engine to determine their values.
606      *
607      * @exception JspException if a JSP exception has occurred
608      */

609     private void evaluateExpressions() throws JspException JavaDoc {
610         String JavaDoc string = null;
611         Boolean JavaDoc bool = null;
612
613         if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(),
614                                             this, pageContext)) != null)
615             setAccesskey(string);
616
617         // The "align" attribute is deprecated. This needs to be removed when
618
// the "align" attribute is finally removed.
619
if ((string = EvalHelper.evalString("align", getAlignExpr(),
620                                             this, pageContext)) != null)
621             setAlign(string);
622
623         if ((string = EvalHelper.evalString("alt", getAltExpr(),
624                                             this, pageContext)) != null)
625             setAlt(string);
626
627         if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(),
628                                             this, pageContext)) != null)
629             setAltKey(string);
630
631         if ((string = EvalHelper.evalString("border", getBorderExpr(),
632                                             this, pageContext)) != null)
633             setBorder(string);
634
635         if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
636                                             this, pageContext)) != null)
637             setBundle(string);
638
639         if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(),
640                                            this, pageContext)) != null)
641             setDisabled(bool.booleanValue());
642
643         if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(),
644                                            this, pageContext)) != null)
645             setIndexed(bool.booleanValue());
646
647         if ((string = EvalHelper.evalString("locale", getLocaleExpr(),
648                                             this, pageContext)) != null)
649             setLocale(string);
650
651         if ((string = EvalHelper.evalString("onblur", getOnblurExpr(),
652                                             this, pageContext)) != null)
653             setOnblur(string);
654
655         if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(),
656                                             this, pageContext)) != null)
657             setOnchange(string);
658
659         if ((string = EvalHelper.evalString("onclick", getOnclickExpr(),
660                                             this, pageContext)) != null)
661             setOnclick(string);
662
663         if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(),
664                                             this, pageContext)) != null)
665             setOndblclick(string);
666
667         if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(),
668                                             this, pageContext)) != null)
669             setOnfocus(string);
670
671         if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(),
672                                             this, pageContext)) != null)
673             setOnkeydown(string);
674
675         if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(),
676                                             this, pageContext)) != null)
677             setOnkeypress(string);
678
679         if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(),
680                                             this, pageContext)) != null)
681             setOnkeyup(string);
682
683         if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(),
684                                             this, pageContext)) != null)
685             setOnmousedown(string);
686
687         if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(),
688                                             this, pageContext)) != null)
689             setOnmousemove(string);
690
691         if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(),
692                                             this, pageContext)) != null)
693             setOnmouseout(string);
694
695         if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(),
696                                             this, pageContext)) != null)
697             setOnmouseover(string);
698
699         if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(),
700                                             this, pageContext)) != null)
701             setOnmouseup(string);
702
703         if ((string = EvalHelper.evalString("page", getPageExpr(),
704                                             this, pageContext)) != null)
705             setPage(string);
706
707         if ((string = EvalHelper.evalString("pageKey", getPageKeyExpr(),
708                                             this, pageContext)) != null)
709             setPageKey(string);
710
711         if ((string = EvalHelper.evalString("property", getPropertyExpr(),
712                                             this, pageContext)) != null)
713             setProperty(string);
714
715         if ((string = EvalHelper.evalString("src", getSrcExpr(),
716                                             this, pageContext)) != null)
717             setSrc(string);
718
719
720         if ((string = EvalHelper.evalString("srcKey", getSrcKeyExpr(),
721                                             this, pageContext)) != null)
722             setSrcKey(string);
723
724         if ((string = EvalHelper.evalString("style", getStyleExpr(),
725                                             this, pageContext)) != null)
726             setStyle(string);
727
728         if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(),
729                                             this, pageContext)) != null)
730             setStyleClass(string);
731
732         if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(),
733                                             this, pageContext)) != null)
734             setStyleId(string);
735
736         if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(),
737                                             this, pageContext)) != null)
738             setTabindex(string);
739
740         if ((string = EvalHelper.evalString("title", getTitleExpr(),
741                                             this, pageContext)) != null)
742             setTitle(string);
743
744         if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(),
745                                             this, pageContext)) != null)
746             setTitleKey(string);
747
748         if ((string = EvalHelper.evalString("value", getValueExpr(),
749                                             this, pageContext)) != null)
750             setValue(string);
751     }
752 }
753
Popular Tags