KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: ELMultiboxTag.java 123585 2004-12-29 00:43:33Z martinc $
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.MultiboxTag;
22 import javax.servlet.jsp.JspException JavaDoc;
23 import org.apache.strutsel.taglib.utils.EvalHelper;
24
25 /**
26  * Tag for input fields of type "checkbox". This differs from CheckboxTag
27  * because it assumes that the underlying property is an array getter (of any
28  * supported primitive type, or String), and the checkbox is initialized to
29  * "checked" if the value listed for the "value" attribute is present in the
30  * values returned by the property getter.
31  *<p>
32  * This class is a subclass of the class
33  * <code>org.apache.struts.taglib.html.MultiboxTag</code> which provides most of
34  * the described functionality. This subclass allows all attribute values to
35  * be specified as expressions utilizing the JavaServer Pages Standard Library
36  * expression language.
37  *
38  * @version $Rev: 123585 $
39  */

40 public class ELMultiboxTag extends MultiboxTag {
41
42     /**
43      * Instance variable mapped to "accessKey" tag attribute.
44      * (Mapping set in associated BeanInfo class.)
45      */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

196     private String JavaDoc valueExpr;
197
198     /**
199      * Getter method for "accessKey" tag attribute.
200      * (Mapping set in associated BeanInfo class.)
201      */

202     public String JavaDoc getAccesskeyExpr() { return (accessKeyExpr); }
203     /**
204      * Getter method for "alt" tag attribute.
205      * (Mapping set in associated BeanInfo class.)
206      */

207     public String JavaDoc getAltExpr() { return (altExpr); }
208     /**
209      * Getter method for "altKey" tag attribute.
210      * (Mapping set in associated BeanInfo class.)
211      */

212     public String JavaDoc getAltKeyExpr() { return (altKeyExpr); }
213     /**
214      * Getter method for "bundle" tag attribute.
215      * (Mapping set in associated BeanInfo class.)
216      */

217     public String JavaDoc getBundleExpr() { return (bundleExpr); }
218     /**
219      * Getter method for "disabled" tag attribute.
220      * (Mapping set in associated BeanInfo class.)
221      */

222     public String JavaDoc getDisabledExpr() { return (disabledExpr); }
223     /**
224      * Getter method for "errorKey" tag attribute.
225      * (Mapping set in associated BeanInfo class.)
226      */

227     public String JavaDoc getErrorKeyExpr() { return (errorKeyExpr); }
228     /**
229      * Getter method for "errorStyle" tag attribute.
230      * (Mapping set in associated BeanInfo class.)
231      */

232     public String JavaDoc getErrorStyleExpr() { return (errorStyleExpr); }
233     /**
234      * Getter method for "errorStyleClass" tag attribute.
235      * (Mapping set in associated BeanInfo class.)
236      */

237     public String JavaDoc getErrorStyleClassExpr() { return (errorStyleClassExpr); }
238     /**
239      * Getter method for "errorStyleId" tag attribute.
240      * (Mapping set in associated BeanInfo class.)
241      */

242     public String JavaDoc getErrorStyleIdExpr() { return (errorStyleIdExpr); }
243     /**
244      * Getter method for "name" tag attribute.
245      * (Mapping set in associated BeanInfo class.)
246      */

247     public String JavaDoc getNameExpr() { return (nameExpr); }
248     /**
249      * Getter method for "onblur" tag attribute.
250      * (Mapping set in associated BeanInfo class.)
251      */

252     public String JavaDoc getOnblurExpr() { return (onblurExpr); }
253     /**
254      * Getter method for "onchange" tag attribute.
255      * (Mapping set in associated BeanInfo class.)
256      */

257     public String JavaDoc getOnchangeExpr() { return (onchangeExpr); }
258     /**
259      * Getter method for "onclick" tag attribute.
260      * (Mapping set in associated BeanInfo class.)
261      */

262     public String JavaDoc getOnclickExpr() { return (onclickExpr); }
263     /**
264      * Getter method for "ondblclick" tag attribute.
265      * (Mapping set in associated BeanInfo class.)
266      */

267     public String JavaDoc getOndblclickExpr() { return (ondblclickExpr); }
268     /**
269      * Getter method for "onfocus" tag attribute.
270      * (Mapping set in associated BeanInfo class.)
271      */

272     public String JavaDoc getOnfocusExpr() { return (onfocusExpr); }
273     /**
274      * Getter method for "onkeydown" tag attribute.
275      * (Mapping set in associated BeanInfo class.)
276      */

277     public String JavaDoc getOnkeydownExpr() { return (onkeydownExpr); }
278     /**
279      * Getter method for "onkeypress" tag attribute.
280      * (Mapping set in associated BeanInfo class.)
281      */

282     public String JavaDoc getOnkeypressExpr() { return (onkeypressExpr); }
283     /**
284      * Getter method for "onkeyup" tag attribute.
285      * (Mapping set in associated BeanInfo class.)
286      */

287     public String JavaDoc getOnkeyupExpr() { return (onkeyupExpr); }
288     /**
289      * Getter method for "onmousedown" tag attribute.
290      * (Mapping set in associated BeanInfo class.)
291      */

292     public String JavaDoc getOnmousedownExpr() { return (onmousedownExpr); }
293     /**
294      * Getter method for "onmousemove" tag attribute.
295      * (Mapping set in associated BeanInfo class.)
296      */

297     public String JavaDoc getOnmousemoveExpr() { return (onmousemoveExpr); }
298     /**
299      * Getter method for "onmouseout" tag attribute.
300      * (Mapping set in associated BeanInfo class.)
301      */

302     public String JavaDoc getOnmouseoutExpr() { return (onmouseoutExpr); }
303     /**
304      * Getter method for "onmouseover" tag attribute.
305      * (Mapping set in associated BeanInfo class.)
306      */

307     public String JavaDoc getOnmouseoverExpr() { return (onmouseoverExpr); }
308     /**
309      * Getter method for "onmouseup" tag attribute.
310      * (Mapping set in associated BeanInfo class.)
311      */

312     public String JavaDoc getOnmouseupExpr() { return (onmouseupExpr); }
313     /**
314      * Getter method for "property" tag attribute.
315      * (Mapping set in associated BeanInfo class.)
316      */

317     public String JavaDoc getPropertyExpr() { return (propertyExpr); }
318     /**
319      * Getter method for "style" tag attribute.
320      * (Mapping set in associated BeanInfo class.)
321      */

322     public String JavaDoc getStyleExpr() { return (styleExpr); }
323     /**
324      * Getter method for "styleClass" tag attribute.
325      * (Mapping set in associated BeanInfo class.)
326      */

327     public String JavaDoc getStyleClassExpr() { return (styleClassExpr); }
328     /**
329      * Getter method for "styleId" tag attribute.
330      * (Mapping set in associated BeanInfo class.)
331      */

332     public String JavaDoc getStyleIdExpr() { return (styleIdExpr); }
333     /**
334      * Getter method for "tabindex" tag attribute.
335      * (Mapping set in associated BeanInfo class.)
336      */

337     public String JavaDoc getTabindexExpr() { return (tabindexExpr); }
338     /**
339      * Getter method for "title" tag attribute.
340      * (Mapping set in associated BeanInfo class.)
341      */

342     public String JavaDoc getTitleExpr() { return (titleExpr); }
343     /**
344      * Getter method for "titleKey" tag attribute.
345      * (Mapping set in associated BeanInfo class.)
346      */

347     public String JavaDoc getTitleKeyExpr() { return (titleKeyExpr); }
348     /**
349      * Getter method for "value" tag attribute.
350      * (Mapping set in associated BeanInfo class.)
351      */

352     public String JavaDoc getValueExpr() { return (valueExpr); }
353
354     /**
355      * Setter method for "accessKey" tag attribute.
356      * (Mapping set in associated BeanInfo class.)
357      */

358     public void setAccesskeyExpr(String JavaDoc accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; }
359     /**
360      * Setter method for "alt" tag attribute.
361      * (Mapping set in associated BeanInfo class.)
362      */

363     public void setAltExpr(String JavaDoc altExpr) { this.altExpr = altExpr; }
364     /**
365      * Setter method for "altKey" tag attribute.
366      * (Mapping set in associated BeanInfo class.)
367      */

368     public void setAltKeyExpr(String JavaDoc altKeyExpr) { this.altKeyExpr = altKeyExpr; }
369     /**
370      * Setter method for "bundle" tag attribute.
371      * (Mapping set in associated BeanInfo class.)
372      */

373     public void setBundleExpr(String JavaDoc bundleExpr) { this.bundleExpr = bundleExpr; }
374     /**
375      * Setter method for "disabled" tag attribute.
376      * (Mapping set in associated BeanInfo class.)
377      */

378     public void setDisabledExpr(String JavaDoc disabledExpr) { this.disabledExpr = disabledExpr; }
379     /**
380      * Setter method for "errorKey" tag attribute.
381      * (Mapping set in associated BeanInfo class.)
382      */

383     public void setErrorKeyExpr(String JavaDoc errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; }
384     /**
385      * Setter method for "errorStyle" tag attribute.
386      * (Mapping set in associated BeanInfo class.)
387      */

388     public void setErrorStyleExpr(String JavaDoc errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; }
389     /**
390      * Setter method for "errorStyleClass" tag attribute.
391      * (Mapping set in associated BeanInfo class.)
392      */

393     public void setErrorStyleClassExpr(String JavaDoc errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; }
394     /**
395      * Setter method for "errorStyleId" tag attribute.
396      * (Mapping set in associated BeanInfo class.)
397      */

398     public void setErrorStyleIdExpr(String JavaDoc errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; }
399     /**
400      * Setter method for "name" tag attribute.
401      * (Mapping set in associated BeanInfo class.)
402      */

403     public void setNameExpr(String JavaDoc nameExpr) { this.nameExpr = nameExpr; }
404     /**
405      * Setter method for "onblur" tag attribute.
406      * (Mapping set in associated BeanInfo class.)
407      */

408     public void setOnblurExpr(String JavaDoc onblurExpr) { this.onblurExpr = onblurExpr; }
409     /**
410      * Setter method for "onchange" tag attribute.
411      * (Mapping set in associated BeanInfo class.)
412      */

413     public void setOnchangeExpr(String JavaDoc onchangeExpr) { this.onchangeExpr = onchangeExpr; }
414     /**
415      * Setter method for "onclick" tag attribute.
416      * (Mapping set in associated BeanInfo class.)
417      */

418     public void setOnclickExpr(String JavaDoc onclickExpr) { this.onclickExpr = onclickExpr; }
419     /**
420      * Setter method for "ondblclick" tag attribute.
421      * (Mapping set in associated BeanInfo class.)
422      */

423     public void setOndblclickExpr(String JavaDoc ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; }
424     /**
425      * Setter method for "onfocus" tag attribute.
426      * (Mapping set in associated BeanInfo class.)
427      */

428     public void setOnfocusExpr(String JavaDoc onfocusExpr) { this.onfocusExpr = onfocusExpr; }
429     /**
430      * Setter method for "onkeydown" tag attribute.
431      * (Mapping set in associated BeanInfo class.)
432      */

433     public void setOnkeydownExpr(String JavaDoc onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; }
434     /**
435      * Setter method for "onkeypress" tag attribute.
436      * (Mapping set in associated BeanInfo class.)
437      */

438     public void setOnkeypressExpr(String JavaDoc onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; }
439     /**
440      * Setter method for "onkeyup" tag attribute.
441      * (Mapping set in associated BeanInfo class.)
442      */

443     public void setOnkeyupExpr(String JavaDoc onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; }
444     /**
445      * Setter method for "onmousedown" tag attribute.
446      * (Mapping set in associated BeanInfo class.)
447      */

448     public void setOnmousedownExpr(String JavaDoc onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; }
449     /**
450      * Setter method for "onmousemove" tag attribute.
451      * (Mapping set in associated BeanInfo class.)
452      */

453     public void setOnmousemoveExpr(String JavaDoc onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; }
454     /**
455      * Setter method for "onmouseout" tag attribute.
456      * (Mapping set in associated BeanInfo class.)
457      */

458     public void setOnmouseoutExpr(String JavaDoc onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; }
459     /**
460      * Setter method for "onmouseover" tag attribute.
461      * (Mapping set in associated BeanInfo class.)
462      */

463     public void setOnmouseoverExpr(String JavaDoc onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; }
464     /**
465      * Setter method for "onmouseup" tag attribute.
466      * (Mapping set in associated BeanInfo class.)
467      */

468     public void setOnmouseupExpr(String JavaDoc onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; }
469     /**
470      * Setter method for "property" tag attribute.
471      * (Mapping set in associated BeanInfo class.)
472      */

473     public void setPropertyExpr(String JavaDoc propertyExpr) { this.propertyExpr = propertyExpr; }
474     /**
475      * Setter method for "style" tag attribute.
476      * (Mapping set in associated BeanInfo class.)
477      */

478     public void setStyleExpr(String JavaDoc styleExpr) { this.styleExpr = styleExpr; }
479     /**
480      * Setter method for "styleClass" tag attribute.
481      * (Mapping set in associated BeanInfo class.)
482      */

483     public void setStyleClassExpr(String JavaDoc styleClassExpr) { this.styleClassExpr = styleClassExpr; }
484     /**
485      * Setter method for "styleId" tag attribute.
486      * (Mapping set in associated BeanInfo class.)
487      */

488     public void setStyleIdExpr(String JavaDoc styleIdExpr) { this.styleIdExpr = styleIdExpr; }
489     /**
490      * Setter method for "tabindex" tag attribute.
491      * (Mapping set in associated BeanInfo class.)
492      */

493     public void setTabindexExpr(String JavaDoc tabindexExpr) { this.tabindexExpr = tabindexExpr; }
494     /**
495      * Setter method for "title" tag attribute.
496      * (Mapping set in associated BeanInfo class.)
497      */

498     public void setTitleExpr(String JavaDoc titleExpr) { this.titleExpr = titleExpr; }
499     /**
500      * Setter method for "titleKey" tag attribute.
501      * (Mapping set in associated BeanInfo class.)
502      */

503     public void setTitleKeyExpr(String JavaDoc titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; }
504     /**
505      * Setter method for "value" tag attribute.
506      * (Mapping set in associated BeanInfo class.)
507      */

508     public void setValueExpr(String JavaDoc valueExpr) { this.valueExpr = valueExpr; }
509
510     /**
511      * Resets attribute values for tag reuse.
512      */

513     public void release()
514     {
515         super.release();
516         setAccesskeyExpr(null);
517         setAltExpr(null);
518         setAltKeyExpr(null);
519         setBundleExpr(null);
520         setDisabledExpr(null);
521         setErrorKey(null);
522         setErrorStyleExpr(null);
523         setErrorStyleClassExpr(null);
524         setErrorStyleIdExpr(null);
525         setNameExpr(null);
526         setOnblurExpr(null);
527         setOnchangeExpr(null);
528         setOnclickExpr(null);
529         setOndblclickExpr(null);
530         setOnfocusExpr(null);
531         setOnkeydownExpr(null);
532         setOnkeypressExpr(null);
533         setOnkeyupExpr(null);
534         setOnmousedownExpr(null);
535         setOnmousemoveExpr(null);
536         setOnmouseoutExpr(null);
537         setOnmouseoverExpr(null);
538         setOnmouseupExpr(null);
539         setPropertyExpr(null);
540         setStyleExpr(null);
541         setStyleClassExpr(null);
542         setStyleIdExpr(null);
543         setTabindexExpr(null);
544         setTitleExpr(null);
545         setTitleKeyExpr(null);
546         setValueExpr(null);
547     }
548
549     /**
550      * Process the start tag.
551      *
552      * @exception JspException if a JSP exception has occurred
553      */

554     public int doStartTag() throws JspException JavaDoc {
555         evaluateExpressions();
556         return(super.doStartTag());
557     }
558
559     /**
560      * Processes all attribute values which use the JSTL expression evaluation
561      * engine to determine their values.
562      *
563      * @exception JspException if a JSP exception has occurred
564      */

565     private void evaluateExpressions() throws JspException JavaDoc {
566         String JavaDoc string = null;
567         Boolean JavaDoc bool = null;
568
569         if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(),
570                                             this, pageContext)) != null)
571             setAccesskey(string);
572
573         if ((string = EvalHelper.evalString("alt", getAltExpr(),
574                                             this, pageContext)) != null)
575             setAlt(string);
576
577         if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(),
578                                             this, pageContext)) != null)
579             setAltKey(string);
580
581         if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
582                                             this, pageContext)) != null)
583             setBundle(string);
584
585         if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(),
586                                            this, pageContext)) != null)
587             setDisabled(bool.booleanValue());
588
589         if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(),
590                                             this, pageContext)) != null)
591             setErrorKey(string);
592
593         if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(),
594                                             this, pageContext)) != null)
595             setErrorStyle(string);
596
597         if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(),
598                                             this, pageContext)) != null)
599             setErrorStyleClass(string);
600
601         if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(),
602                                             this, pageContext)) != null)
603             setErrorStyleId(string);
604
605         if ((string = EvalHelper.evalString("name", getNameExpr(),
606                                             this, pageContext)) != null)
607             setName(string);
608
609         if ((string = EvalHelper.evalString("onblur", getOnblurExpr(),
610                                             this, pageContext)) != null)
611             setOnblur(string);
612
613         if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(),
614                                             this, pageContext)) != null)
615             setOnchange(string);
616
617         if ((string = EvalHelper.evalString("onclick", getOnclickExpr(),
618                                             this, pageContext)) != null)
619             setOnclick(string);
620
621         if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(),
622                                             this, pageContext)) != null)
623             setOndblclick(string);
624
625         if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(),
626                                             this, pageContext)) != null)
627             setOnfocus(string);
628
629         if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(),
630                                             this, pageContext)) != null)
631             setOnkeydown(string);
632
633         if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(),
634                                             this, pageContext)) != null)
635             setOnkeypress(string);
636
637         if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(),
638                                             this, pageContext)) != null)
639             setOnkeyup(string);
640
641         if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(),
642                                             this, pageContext)) != null)
643             setOnmousedown(string);
644
645         if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(),
646                                             this, pageContext)) != null)
647             setOnmousemove(string);
648
649         if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(),
650                                             this, pageContext)) != null)
651             setOnmouseout(string);
652
653         if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(),
654                                             this, pageContext)) != null)
655             setOnmouseover(string);
656
657         if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(),
658                                             this, pageContext)) != null)
659             setOnmouseup(string);
660
661         if ((string = EvalHelper.evalString("property", getPropertyExpr(),
662                                             this, pageContext)) != null)
663             setProperty(string);
664
665         if ((string = EvalHelper.evalString("style", getStyleExpr(),
666                                             this, pageContext)) != null)
667             setStyle(string);
668
669         if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(),
670                                             this, pageContext)) != null)
671             setStyleClass(string);
672
673         if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(),
674                                             this, pageContext)) != null)
675             setStyleId(string);
676
677         if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(),
678                                             this, pageContext)) != null)
679             setTabindex(string);
680
681         if ((string = EvalHelper.evalString("title", getTitleExpr(),
682                                             this, pageContext)) != null)
683             setTitle(string);
684
685         if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(),
686                                             this, pageContext)) != null)
687             setTitleKey(string);
688
689         if ((string = EvalHelper.evalString("value", getValueExpr(),
690                                             this, pageContext)) != null)
691             setValue(string);
692     }
693 }
694
Popular Tags