KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ELImgTag.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.ImgTag;
22 import javax.servlet.jsp.JspException JavaDoc;
23 import org.apache.strutsel.taglib.utils.EvalHelper;
24
25 /**
26  * Generate an IMG tag to the specified image URI.
27  * <p>
28  * TODO:
29  * <ul>
30  * <li>make the <strong>alt</strong>, <strong>src</strong>, and
31  * <strong>lowsrc</strong> settable from properties (for i18n)</li>
32  * <li>handle <strong>onLoad</strong>, <strong>onAbort</strong>, and
33  * <strong>onError</strong> events (my JavaScript book is very old,
34  * there may be more unsupported events in the past couple of IE
35  * versions)
36  * </ul>
37  *<p>
38  * This class is a subclass of the class
39  * <code>org.apache.struts.taglib.html.ImgTag</code> which provides most of
40  * the described functionality. This subclass allows all attribute values to
41  * be specified as expressions utilizing the JavaServer Pages Standard Library
42  * expression language.
43  *
44  * @version $Rev: 54933 $
45  */

46 public class ELImgTag extends ImgTag {
47
48     /**
49      * Instance variable mapped to "action" tag attribute.
50      * (Mapping set in associated BeanInfo class.)
51      */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

207     private String JavaDoc propertyExpr;
208     /**
209      * Instance variable mapped to "scope" tag attribute.
210      * (Mapping set in associated BeanInfo class.)
211      */

212     private String JavaDoc scopeExpr;
213     /**
214      * Instance variable mapped to "src" tag attribute.
215      * (Mapping set in associated BeanInfo class.)
216      */

217     private String JavaDoc srcExpr;
218     /**
219      * Instance variable mapped to "srcKey" tag attribute.
220      * (Mapping set in associated BeanInfo class.)
221      */

222     private String JavaDoc srcKeyExpr;
223     /**
224      * Instance variable mapped to "style" tag attribute.
225      * (Mapping set in associated BeanInfo class.)
226      */

227     private String JavaDoc styleExpr;
228     /**
229      * Instance variable mapped to "styleClass" tag attribute.
230      * (Mapping set in associated BeanInfo class.)
231      */

232     private String JavaDoc styleClassExpr;
233     /**
234      * Instance variable mapped to "styleId" tag attribute.
235      * (Mapping set in associated BeanInfo class.)
236      */

237     private String JavaDoc styleIdExpr;
238     /**
239      * Instance variable mapped to "title" tag attribute.
240      * (Mapping set in associated BeanInfo class.)
241      */

242     private String JavaDoc titleExpr;
243     /**
244      * Instance variable mapped to "titleKey" tag attribute.
245      * (Mapping set in associated BeanInfo class.)
246      */

247     private String JavaDoc titleKeyExpr;
248     /**
249      * Instance variable mapped to "useLocalEncoding" tag attribute.
250      * (Mapping set in associated BeanInfo class.)
251      */

252     private String JavaDoc useLocalEncodingExpr;
253     /**
254      * Instance variable mapped to "usemap" tag attribute.
255      * (Mapping set in associated BeanInfo class.)
256      */

257     private String JavaDoc usemapExpr;
258     /**
259      * Instance variable mapped to "vspace" tag attribute.
260      * (Mapping set in associated BeanInfo class.)
261      */

262     private String JavaDoc vspaceExpr;
263     /**
264      * Instance variable mapped to "width" tag attribute.
265      * (Mapping set in associated BeanInfo class.)
266      */

267     private String JavaDoc widthExpr;
268
269     /**
270      * Getter method for "action" tag attribute.
271      * (Mapping set in associated BeanInfo class.)
272      */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

378     public String JavaDoc getOnmousemoveExpr() { return (onmousemoveExpr); }
379     /**
380      * Getter method for "onmouseout" tag attribute.
381      * (Mapping set in associated BeanInfo class.)
382      */

383     public String JavaDoc getOnmouseoutExpr() { return (onmouseoutExpr); }
384     /**
385      * Getter method for "onmouseover" tag attribute.
386      * (Mapping set in associated BeanInfo class.)
387      */

388     public String JavaDoc getOnmouseoverExpr() { return (onmouseoverExpr); }
389     /**
390      * Getter method for "onmouseup" tag attribute.
391      * (Mapping set in associated BeanInfo class.)
392      */

393     public String JavaDoc getOnmouseupExpr() { return (onmouseupExpr); }
394     /**
395      * Getter method for "paramId" tag attribute.
396      * (Mapping set in associated BeanInfo class.)
397      */

398     public String JavaDoc getParamIdExpr() { return (paramIdExpr); }
399     /**
400      * Getter method for "page" tag attribute.
401      * (Mapping set in associated BeanInfo class.)
402      */

403     public String JavaDoc getPageExpr() { return (pageExpr); }
404     /**
405      * Getter method for "pageKey" tag attribute.
406      * (Mapping set in associated BeanInfo class.)
407      */

408     public String JavaDoc getPageKeyExpr() { return (pageKeyExpr); }
409     /**
410      * Getter method for "paramName" tag attribute.
411      * (Mapping set in associated BeanInfo class.)
412      */

413     public String JavaDoc getParamNameExpr() { return (paramNameExpr); }
414     /**
415      * Getter method for "paramProperty" tag attribute.
416      * (Mapping set in associated BeanInfo class.)
417      */

418     public String JavaDoc getParamPropertyExpr() { return (paramPropertyExpr); }
419     /**
420      * Getter method for "paramScope" tag attribute.
421      * (Mapping set in associated BeanInfo class.)
422      */

423     public String JavaDoc getParamScopeExpr() { return (paramScopeExpr); }
424     /**
425      * Getter method for "property" tag attribute.
426      * (Mapping set in associated BeanInfo class.)
427      */

428     public String JavaDoc getPropertyExpr() { return (propertyExpr); }
429     /**
430      * Getter method for "scope" tag attribute.
431      * (Mapping set in associated BeanInfo class.)
432      */

433     public String JavaDoc getScopeExpr() { return (scopeExpr); }
434     /**
435      * Getter method for "src" tag attribute.
436      * (Mapping set in associated BeanInfo class.)
437      */

438     public String JavaDoc getSrcExpr() { return (srcExpr); }
439     /**
440      * Getter method for "srcKey" tag attribute.
441      * (Mapping set in associated BeanInfo class.)
442      */

443     public String JavaDoc getSrcKeyExpr() { return (srcKeyExpr); }
444     /**
445      * Getter method for "style" tag attribute.
446      * (Mapping set in associated BeanInfo class.)
447      */

448     public String JavaDoc getStyleExpr() { return (styleExpr); }
449     /**
450      * Getter method for "styleClass" tag attribute.
451      * (Mapping set in associated BeanInfo class.)
452      */

453     public String JavaDoc getStyleClassExpr() { return (styleClassExpr); }
454     /**
455      * Getter method for "styleId" tag attribute.
456      * (Mapping set in associated BeanInfo class.)
457      */

458     public String JavaDoc getStyleIdExpr() { return (styleIdExpr); }
459     /**
460      * Getter method for "title" tag attribute.
461      * (Mapping set in associated BeanInfo class.)
462      */

463     public String JavaDoc getTitleExpr() { return (titleExpr); }
464     /**
465      * Getter method for "titleKey" tag attribute.
466      * (Mapping set in associated BeanInfo class.)
467      */

468     public String JavaDoc getTitleKeyExpr() { return (titleKeyExpr); }
469     /**
470      * Getter method for "useLocalEncoding" tag attribute.
471      * (Mapping set in associated BeanInfo class.)
472      */

473     public String JavaDoc getUseLocalEncodingExpr() { return (useLocalEncodingExpr); }
474     /**
475      * Getter method for "usemap" tag attribute.
476      * (Mapping set in associated BeanInfo class.)
477      */

478     public String JavaDoc getUsemapExpr() { return (usemapExpr); }
479     /**
480      * Getter method for "vspace" tag attribute.
481      * (Mapping set in associated BeanInfo class.)
482      */

483     public String JavaDoc getVspaceExpr() { return (vspaceExpr); }
484     /**
485      * Getter method for "width" tag attribute.
486      * (Mapping set in associated BeanInfo class.)
487      */

488     public String JavaDoc getWidthExpr() { return (widthExpr); }
489
490     /**
491      * Setter method for "action" tag attribute.
492      * (Mapping set in associated BeanInfo class.)
493      */

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

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

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

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

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

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

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

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

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

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

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

549     public void setIsmapExpr(String JavaDoc ismapExpr) { this.ismapExpr = ismapExpr; }
550     /**
551      * Setter method for "locale" tag attribute.
552      * (Mapping set in associated BeanInfo class.)
553      */

554     public void setLocaleExpr(String JavaDoc localeExpr) { this.localeExpr = localeExpr; }
555     /**
556      * Setter method for "lowsrc" tag attribute.
557      * (Mapping set in associated BeanInfo class.)
558      */

559     public void setLowsrcExpr(String JavaDoc lowsrcExpr) { this.lowsrcExpr = lowsrcExpr; }
560     /**
561      * Setter method for "name" tag attribute.
562      * (Mapping set in associated BeanInfo class.)
563      */

564     public void setNameExpr(String JavaDoc nameExpr) { this.nameExpr = nameExpr; }
565     /**
566      * Setter method for "onclick" tag attribute.
567      * (Mapping set in associated BeanInfo class.)
568      */

569     public void setOnclickExpr(String JavaDoc onclickExpr) { this.onclickExpr = onclickExpr; }
570     /**
571      * Setter method for "ondblclick" tag attribute.
572      * (Mapping set in associated BeanInfo class.)
573      */

574     public void setOndblclickExpr(String JavaDoc ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; }
575     /**
576      * Setter method for "onkeydown" tag attribute.
577      * (Mapping set in associated BeanInfo class.)
578      */

579     public void setOnkeydownExpr(String JavaDoc onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; }
580     /**
581      * Setter method for "onkeypress" tag attribute.
582      * (Mapping set in associated BeanInfo class.)
583      */

584     public void setOnkeypressExpr(String JavaDoc onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; }
585     /**
586      * Setter method for "onkeyup" tag attribute.
587      * (Mapping set in associated BeanInfo class.)
588      */

589     public void setOnkeyupExpr(String JavaDoc onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; }
590     /**
591      * Setter method for "onmousedown" tag attribute.
592      * (Mapping set in associated BeanInfo class.)
593      */

594     public void setOnmousedownExpr(String JavaDoc onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; }
595     /**
596      * Setter method for "onmousemove" tag attribute.
597      * (Mapping set in associated BeanInfo class.)
598      */

599     public void setOnmousemoveExpr(String JavaDoc onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; }
600     /**
601      * Setter method for "onmouseout" tag attribute.
602      * (Mapping set in associated BeanInfo class.)
603      */

604     public void setOnmouseoutExpr(String JavaDoc onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; }
605     /**
606      * Setter method for "onmouseover" tag attribute.
607      * (Mapping set in associated BeanInfo class.)
608      */

609     public void setOnmouseoverExpr(String JavaDoc onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; }
610     /**
611      * Setter method for "onmouseup" tag attribute.
612      * (Mapping set in associated BeanInfo class.)
613      */

614     public void setOnmouseupExpr(String JavaDoc onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; }
615     /**
616      * Setter method for "paramId" tag attribute.
617      * (Mapping set in associated BeanInfo class.)
618      */

619     public void setParamIdExpr(String JavaDoc paramIdExpr) { this.paramIdExpr = paramIdExpr; }
620     /**
621      * Setter method for "page" tag attribute.
622      * (Mapping set in associated BeanInfo class.)
623      */

624     public void setPageExpr(String JavaDoc pageExpr) { this.pageExpr = pageExpr; }
625     /**
626      * Setter method for "pageKey" tag attribute.
627      * (Mapping set in associated BeanInfo class.)
628      */

629     public void setPageKeyExpr(String JavaDoc pageKeyExpr) { this.pageKeyExpr = pageKeyExpr; }
630     /**
631      * Setter method for "paramName" tag attribute.
632      * (Mapping set in associated BeanInfo class.)
633      */

634     public void setParamNameExpr(String JavaDoc paramNameExpr) { this.paramNameExpr = paramNameExpr; }
635     /**
636      * Setter method for "paramProperty" tag attribute.
637      * (Mapping set in associated BeanInfo class.)
638      */

639     public void setParamPropertyExpr(String JavaDoc paramPropertyExpr) { this.paramPropertyExpr = paramPropertyExpr; }
640     /**
641      * Setter method for "paramScope" tag attribute.
642      * (Mapping set in associated BeanInfo class.)
643      */

644     public void setParamScopeExpr(String JavaDoc paramScopeExpr) { this.paramScopeExpr = paramScopeExpr; }
645     /**
646      * Setter method for "property" tag attribute.
647      * (Mapping set in associated BeanInfo class.)
648      */

649     public void setPropertyExpr(String JavaDoc propertyExpr) { this.propertyExpr = propertyExpr; }
650     /**
651      * Setter method for "scope" tag attribute.
652      * (Mapping set in associated BeanInfo class.)
653      */

654     public void setScopeExpr(String JavaDoc scopeExpr) { this.scopeExpr = scopeExpr; }
655     /**
656      * Setter method for "src" tag attribute.
657      * (Mapping set in associated BeanInfo class.)
658      */

659     public void setSrcExpr(String JavaDoc srcExpr) { this.srcExpr = srcExpr; }
660     /**
661      * Setter method for "srcKey" tag attribute.
662      * (Mapping set in associated BeanInfo class.)
663      */

664     public void setSrcKeyExpr(String JavaDoc srcKeyExpr) { this.srcKeyExpr = srcKeyExpr; }
665     /**
666      * Setter method for "style" tag attribute.
667      * (Mapping set in associated BeanInfo class.)
668      */

669     public void setStyleExpr(String JavaDoc styleExpr) { this.styleExpr = styleExpr; }
670     /**
671      * Setter method for "styleClass" tag attribute.
672      * (Mapping set in associated BeanInfo class.)
673      */

674     public void setStyleClassExpr(String JavaDoc styleClassExpr) { this.styleClassExpr = styleClassExpr; }
675     /**
676      * Setter method for "styleId" tag attribute.
677      * (Mapping set in associated BeanInfo class.)
678      */

679     public void setStyleIdExpr(String JavaDoc styleIdExpr) { this.styleIdExpr = styleIdExpr; }
680     /**
681      * Setter method for "title" tag attribute.
682      * (Mapping set in associated BeanInfo class.)
683      */

684     public void setTitleExpr(String JavaDoc titleExpr) { this.titleExpr = titleExpr; }
685     /**
686      * Setter method for "titleKey" tag attribute.
687      * (Mapping set in associated BeanInfo class.)
688      */

689     public void setTitleKeyExpr(String JavaDoc titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; }
690     /**
691      * Setter method for "useLocalEncoding" tag attribute.
692      * (Mapping set in associated BeanInfo class.)
693      */

694     public void setUseLocalEncodingExpr(String JavaDoc useLocalEncodingExpr) { this.useLocalEncodingExpr = useLocalEncodingExpr; }
695     /**
696      * Setter method for "usemap" tag attribute.
697      * (Mapping set in associated BeanInfo class.)
698      */

699     public void setUsemapExpr(String JavaDoc usemapExpr) { this.usemapExpr = usemapExpr; }
700     /**
701      * Setter method for "vspace" tag attribute.
702      * (Mapping set in associated BeanInfo class.)
703      */

704     public void setVspaceExpr(String JavaDoc vspaceExpr) { this.vspaceExpr = vspaceExpr; }
705     /**
706      * Setter method for "width" tag attribute.
707      * (Mapping set in associated BeanInfo class.)
708      */

709     public void setWidthExpr(String JavaDoc widthExpr) { this.widthExpr = widthExpr; }
710
711     /**
712      * Resets attribute values for tag reuse.
713      */

714     public void release()
715     {
716         super.release();
717         setActionExpr(null);
718         setModuleExpr(null);
719         setAlignExpr(null);
720         setAltExpr(null);
721         setAltKeyExpr(null);
722         setBorderExpr(null);
723         setBundleExpr(null);
724         setContextRelativeExpr(null);
725         setHeightExpr(null);
726         setHspaceExpr(null);
727         setImageNameExpr(null);
728         setIsmapExpr(null);
729         setLocaleExpr(null);
730         setLowsrcExpr(null);
731         setNameExpr(null);
732         setOnclickExpr(null);
733         setOndblclickExpr(null);
734         setOnkeydownExpr(null);
735         setOnkeypressExpr(null);
736         setOnkeyupExpr(null);
737         setOnmousedownExpr(null);
738         setOnmousemoveExpr(null);
739         setOnmouseoutExpr(null);
740         setOnmouseoverExpr(null);
741         setOnmouseupExpr(null);
742         setPageExpr(null);
743         setPageKeyExpr(null);
744         setParamIdExpr(null);
745         setParamNameExpr(null);
746         setParamPropertyExpr(null);
747         setParamScopeExpr(null);
748         setPropertyExpr(null);
749         setScopeExpr(null);
750         setSrcExpr(null);
751         setSrcKeyExpr(null);
752         setStyleExpr(null);
753         setStyleClassExpr(null);
754         setStyleIdExpr(null);
755         setTitleExpr(null);
756         setTitleKeyExpr(null);
757         setUseLocalEncodingExpr(null);
758         setUsemapExpr(null);
759         setVspaceExpr(null);
760         setWidthExpr(null);
761     }
762     
763     /**
764      * Process the start tag.
765      *
766      * @exception JspException if a JSP exception has occurred
767      */

768     public int doStartTag() throws JspException JavaDoc {
769         evaluateExpressions();
770         return (super.doStartTag());
771     }
772     
773     /**
774      * Processes all attribute values which use the JSTL expression evaluation
775      * engine to determine their values.
776      *
777      * @exception JspException if a JSP exception has occurred
778      */

779     private void evaluateExpressions() throws JspException JavaDoc {
780         String JavaDoc string = null;
781         Boolean JavaDoc bool = null;
782
783         if ((string = EvalHelper.evalString("action", getActionExpr(),
784                                             this, pageContext)) != null)
785             setAction(string);
786
787         if ((string = EvalHelper.evalString("module", getModuleExpr(),
788                                             this, pageContext)) != null)
789             setModule(string);
790
791         if ((string = EvalHelper.evalString("align", getAlignExpr(),
792                                             this, pageContext)) != null)
793             setAlign(string);
794
795         if ((string = EvalHelper.evalString("alt", getAltExpr(),
796                                             this, pageContext)) != null)
797             setAlt(string);
798
799         if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(),
800                                             this, pageContext)) != null)
801             setAltKey(string);
802
803         if ((string = EvalHelper.evalString("border", getBorderExpr(),
804                                             this, pageContext)) != null)
805             setBorder(string);
806
807         if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
808                                             this, pageContext)) != null)
809             setBundle(string);
810
811         if ((string = EvalHelper.evalString("contextRelative", getContextRelativeExpr(),
812                                             this, pageContext)) != null)
813             setContextRelative(string);
814
815         if ((string = EvalHelper.evalString("height", getHeightExpr(),
816                                             this, pageContext)) != null)
817             setHeight(string);
818
819         if ((string = EvalHelper.evalString("hspace", getHspaceExpr(),
820                                             this, pageContext)) != null)
821             setHspace(string);
822
823         if ((string = EvalHelper.evalString("imageName", getImageNameExpr(),
824                                             this, pageContext)) != null)
825             setImageName(string);
826
827         if ((string = EvalHelper.evalString("ismap", getIsmapExpr(),
828                                             this, pageContext)) != null)
829             setIsmap(string);
830
831         if ((string = EvalHelper.evalString("locale", getLocaleExpr(),
832                                             this, pageContext)) != null)
833             setLocale(string);
834
835         // The "lowsrc" attribute is deprecated. This needs to be removed
836
// when the "lowsrc" attribute is finally removed.
837
if ((string = EvalHelper.evalString("lowsrc", getLowsrcExpr(),
838                                             this, pageContext)) != null)
839             setLowsrc(string);
840
841         if ((string = EvalHelper.evalString("name", getNameExpr(),
842                                             this, pageContext)) != null)
843             setName(string);
844
845         if ((string = EvalHelper.evalString("onclick", getOnclickExpr(),
846                                             this, pageContext)) != null)
847             setOnclick(string);
848
849         if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(),
850                                             this, pageContext)) != null)
851             setOndblclick(string);
852
853         if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(),
854                                             this, pageContext)) != null)
855             setOnkeydown(string);
856
857         if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(),
858                                             this, pageContext)) != null)
859             setOnkeypress(string);
860
861         if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(),
862                                             this, pageContext)) != null)
863             setOnkeyup(string);
864
865         if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(),
866                                             this, pageContext)) != null)
867             setOnmousedown(string);
868
869         if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(),
870                                             this, pageContext)) != null)
871             setOnmousemove(string);
872
873         if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(),
874                                             this, pageContext)) != null)
875             setOnmouseout(string);
876
877         if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(),
878                                             this, pageContext)) != null)
879             setOnmouseover(string);
880
881         if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(),
882                                             this, pageContext)) != null)
883             setOnmouseup(string);
884
885         if ((string = EvalHelper.evalString("paramId", getParamIdExpr(),
886                                             this, pageContext)) != null)
887             setParamId(string);
888
889         if ((string = EvalHelper.evalString("page", getPageExpr(),
890                                             this, pageContext)) != null)
891             setPage(string);
892
893         if ((string = EvalHelper.evalString("pageKey", getPageKeyExpr(),
894                                             this, pageContext)) != null)
895             setPageKey(string);
896
897         if ((string = EvalHelper.evalString("paramName", getParamNameExpr(),
898                                             this, pageContext)) != null)
899             setParamName(string);
900
901         if ((string = EvalHelper.evalString("paramProperty", getParamPropertyExpr(),
902                                             this, pageContext)) != null)
903             setParamProperty(string);
904
905         if ((string = EvalHelper.evalString("paramScope", getParamScopeExpr(),
906                                             this, pageContext)) != null)
907             setParamScope(string);
908
909         if ((string = EvalHelper.evalString("property", getPropertyExpr(),
910                                             this, pageContext)) != null)
911             setProperty(string);
912
913         if ((string = EvalHelper.evalString("scope", getScopeExpr(),
914                                             this, pageContext)) != null)
915             setScope(string);
916
917         if ((string = EvalHelper.evalString("src", getSrcExpr(),
918                                             this, pageContext)) != null)
919             setSrc(string);
920
921         if ((string = EvalHelper.evalString("srcKey", getSrcKeyExpr(),
922                                             this, pageContext)) != null)
923             setSrcKey(string);
924
925         if ((string = EvalHelper.evalString("style", getStyleExpr(),
926                                             this, pageContext)) != null)
927             setStyle(string);
928
929         if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(),
930                                             this, pageContext)) != null)
931             setStyleClass(string);
932
933         if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(),
934                                             this, pageContext)) != null)
935             setStyleId(string);
936
937         if ((string = EvalHelper.evalString("title", getTitleExpr(),
938                                             this, pageContext)) != null)
939             setTitle(string);
940
941         if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(),
942                                             this, pageContext)) != null)
943             setTitleKey(string);
944
945         if ((bool = EvalHelper.evalBoolean("useLocalEncoding", getUseLocalEncodingExpr(),
946                                             this, pageContext)) != null)
947             setUseLocalEncoding(bool.booleanValue());
948
949         if ((string = EvalHelper.evalString("usemap", getUsemapExpr(),
950                                             this, pageContext)) != null)
951             setUsemap(string);
952
953         if ((string = EvalHelper.evalString("vspace", getVspaceExpr(),
954                                             this, pageContext)) != null)
955             setVspace(string);
956
957         if ((string = EvalHelper.evalString("width", getWidthExpr(),
958                                             this, pageContext)) != null)
959             setWidth(string);
960     }
961 }
962
Popular Tags