0001: /*
0002: * $Id: ELImageTag.java 479635 2006-11-27 14:27:18Z pbenedict $
0003: *
0004: * Licensed to the Apache Software Foundation (ASF) under one
0005: * or more contributor license agreements. See the NOTICE file
0006: * distributed with this work for additional information
0007: * regarding copyright ownership. The ASF licenses this file
0008: * to you under the Apache License, Version 2.0 (the
0009: * "License"); you may not use this file except in compliance
0010: * with the License. You may obtain a copy of the License at
0011: *
0012: * http://www.apache.org/licenses/LICENSE-2.0
0013: *
0014: * Unless required by applicable law or agreed to in writing,
0015: * software distributed under the License is distributed on an
0016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0017: * KIND, either express or implied. See the License for the
0018: * specific language governing permissions and limitations
0019: * under the License.
0020: */
0021: package org.apache.strutsel.taglib.html;
0022:
0023: import org.apache.struts.taglib.html.ImageTag;
0024: import org.apache.strutsel.taglib.utils.EvalHelper;
0025:
0026: import javax.servlet.jsp.JspException;
0027:
0028: /**
0029: * Tag for input fields of type "image". <p> This class is a subclass of the
0030: * class <code>org.apache.struts.taglib.html.ImageTag</code> which provides
0031: * most of the described functionality. This subclass allows all attribute
0032: * values to be specified as expressions utilizing the JavaServer Pages
0033: * Standard Library expression language.
0034: *
0035: * @version $Rev: 479635 $
0036: */
0037: public class ELImageTag extends ImageTag {
0038: /**
0039: * Instance variable mapped to "accessKey" tag attribute. (Mapping set in
0040: * associated BeanInfo class.)
0041: */
0042: private String accessKeyExpr;
0043:
0044: /**
0045: * Instance variable mapped to "align" tag attribute. (Mapping set in
0046: * associated BeanInfo class.)
0047: */
0048: private String alignExpr;
0049:
0050: /**
0051: * Instance variable mapped to "alt" tag attribute. (Mapping set in
0052: * associated BeanInfo class.)
0053: */
0054: private String altExpr;
0055:
0056: /**
0057: * Instance variable mapped to "altKey" tag attribute. (Mapping set in
0058: * associated BeanInfo class.)
0059: */
0060: private String altKeyExpr;
0061:
0062: /**
0063: * Instance variable mapped to "border" tag attribute. (Mapping set in
0064: * associated BeanInfo class.)
0065: */
0066: private String borderExpr;
0067:
0068: /**
0069: * Instance variable mapped to "bundle" tag attribute. (Mapping set in
0070: * associated BeanInfo class.)
0071: */
0072: private String bundleExpr;
0073:
0074: /**
0075: * Instance variable mapped to "dir" tag attribute. (Mapping set in
0076: * associated BeanInfo class.)
0077: */
0078: private String dirExpr;
0079:
0080: /**
0081: * Instance variable mapped to "disabled" tag attribute. (Mapping set in
0082: * associated BeanInfo class.)
0083: */
0084: private String disabledExpr;
0085:
0086: /**
0087: * Instance variable mapped to "indexed" tag attribute. (Mapping set in
0088: * associated BeanInfo class.)
0089: */
0090: private String indexedExpr;
0091:
0092: /**
0093: * Instance variable mapped to "lang" tag attribute. (Mapping set in
0094: * associated BeanInfo class.)
0095: */
0096: private String langExpr;
0097:
0098: /**
0099: * Instance variable mapped to "locale" tag attribute. (Mapping set in
0100: * associated BeanInfo class.)
0101: */
0102: private String localeExpr;
0103:
0104: /**
0105: * Instance variable mapped to "module" tag attribute. (Mapping set in
0106: * associated BeanInfo class.)
0107: */
0108: private String moduleExpr;
0109:
0110: /**
0111: * Instance variable mapped to "onblur" tag attribute. (Mapping set in
0112: * associated BeanInfo class.)
0113: */
0114: private String onblurExpr;
0115:
0116: /**
0117: * Instance variable mapped to "onchange" tag attribute. (Mapping set in
0118: * associated BeanInfo class.)
0119: */
0120: private String onchangeExpr;
0121:
0122: /**
0123: * Instance variable mapped to "onclick" tag attribute. (Mapping set in
0124: * associated BeanInfo class.)
0125: */
0126: private String onclickExpr;
0127:
0128: /**
0129: * Instance variable mapped to "ondblclick" tag attribute. (Mapping set in
0130: * associated BeanInfo class.)
0131: */
0132: private String ondblclickExpr;
0133:
0134: /**
0135: * Instance variable mapped to "onfocus" tag attribute. (Mapping set in
0136: * associated BeanInfo class.)
0137: */
0138: private String onfocusExpr;
0139:
0140: /**
0141: * Instance variable mapped to "onkeydown" tag attribute. (Mapping set in
0142: * associated BeanInfo class.)
0143: */
0144: private String onkeydownExpr;
0145:
0146: /**
0147: * Instance variable mapped to "onkeypress" tag attribute. (Mapping set in
0148: * associated BeanInfo class.)
0149: */
0150: private String onkeypressExpr;
0151:
0152: /**
0153: * Instance variable mapped to "onkeyup" tag attribute. (Mapping set in
0154: * associated BeanInfo class.)
0155: */
0156: private String onkeyupExpr;
0157:
0158: /**
0159: * Instance variable mapped to "onmousedown" tag attribute. (Mapping set
0160: * in associated BeanInfo class.)
0161: */
0162: private String onmousedownExpr;
0163:
0164: /**
0165: * Instance variable mapped to "onmousemove" tag attribute. (Mapping set
0166: * in associated BeanInfo class.)
0167: */
0168: private String onmousemoveExpr;
0169:
0170: /**
0171: * Instance variable mapped to "onmouseout" tag attribute. (Mapping set in
0172: * associated BeanInfo class.)
0173: */
0174: private String onmouseoutExpr;
0175:
0176: /**
0177: * Instance variable mapped to "onmouseover" tag attribute. (Mapping set
0178: * in associated BeanInfo class.)
0179: */
0180: private String onmouseoverExpr;
0181:
0182: /**
0183: * Instance variable mapped to "onmouseup" tag attribute. (Mapping set in
0184: * associated BeanInfo class.)
0185: */
0186: private String onmouseupExpr;
0187:
0188: /**
0189: * Instance variable mapped to "page" tag attribute. (Mapping set in
0190: * associated BeanInfo class.)
0191: */
0192: private String pageExpr;
0193:
0194: /**
0195: * Instance variable mapped to "pageKey" tag attribute. (Mapping set in
0196: * associated BeanInfo class.)
0197: */
0198: private String pageKeyExpr;
0199:
0200: /**
0201: * Instance variable mapped to "property" tag attribute. (Mapping set in
0202: * associated BeanInfo class.)
0203: */
0204: private String propertyExpr;
0205:
0206: /**
0207: * Instance variable mapped to "src" tag attribute. (Mapping set in
0208: * associated BeanInfo class.)
0209: */
0210: private String srcExpr;
0211:
0212: /**
0213: * Instance variable mapped to "srcKey" tag attribute. (Mapping set in
0214: * associated BeanInfo class.)
0215: */
0216: private String srcKeyExpr;
0217:
0218: /**
0219: * Instance variable mapped to "style" tag attribute. (Mapping set in
0220: * associated BeanInfo class.)
0221: */
0222: private String styleExpr;
0223:
0224: /**
0225: * Instance variable mapped to "styleClass" tag attribute. (Mapping set in
0226: * associated BeanInfo class.)
0227: */
0228: private String styleClassExpr;
0229:
0230: /**
0231: * Instance variable mapped to "styleId" tag attribute. (Mapping set in
0232: * associated BeanInfo class.)
0233: */
0234: private String styleIdExpr;
0235:
0236: /**
0237: * Instance variable mapped to "tabindex" tag attribute. (Mapping set in
0238: * associated BeanInfo class.)
0239: */
0240: private String tabindexExpr;
0241:
0242: /**
0243: * Instance variable mapped to "title" tag attribute. (Mapping set in
0244: * associated BeanInfo class.)
0245: */
0246: private String titleExpr;
0247:
0248: /**
0249: * Instance variable mapped to "titleKey" tag attribute. (Mapping set in
0250: * associated BeanInfo class.)
0251: */
0252: private String titleKeyExpr;
0253:
0254: /**
0255: * Instance variable mapped to "value" tag attribute. (Mapping set in
0256: * associated BeanInfo class.)
0257: */
0258: private String valueExpr;
0259:
0260: /**
0261: * Getter method for "accessKey" tag attribute. (Mapping set in associated
0262: * BeanInfo class.)
0263: */
0264: public String getAccesskeyExpr() {
0265: return (accessKeyExpr);
0266: }
0267:
0268: /**
0269: * Getter method for "align" tag attribute. (Mapping set in associated
0270: * BeanInfo class.)
0271: */
0272: public String getAlignExpr() {
0273: return (alignExpr);
0274: }
0275:
0276: /**
0277: * Getter method for "alt" tag attribute. (Mapping set in associated
0278: * BeanInfo class.)
0279: */
0280: public String getAltExpr() {
0281: return (altExpr);
0282: }
0283:
0284: /**
0285: * Getter method for "altKey" tag attribute. (Mapping set in associated
0286: * BeanInfo class.)
0287: */
0288: public String getAltKeyExpr() {
0289: return (altKeyExpr);
0290: }
0291:
0292: /**
0293: * Getter method for "border" tag attribute. (Mapping set in associated
0294: * BeanInfo class.)
0295: */
0296: public String getBorderExpr() {
0297: return (borderExpr);
0298: }
0299:
0300: /**
0301: * Getter method for "bundle" tag attribute. (Mapping set in associated
0302: * BeanInfo class.)
0303: */
0304: public String getBundleExpr() {
0305: return (bundleExpr);
0306: }
0307:
0308: /**
0309: * Getter method for "dir" tag attribute. (Mapping set in associated
0310: * BeanInfo class.)
0311: */
0312: public String getDirExpr() {
0313: return (dirExpr);
0314: }
0315:
0316: /**
0317: * Getter method for "disabled" tag attribute. (Mapping set in associated
0318: * BeanInfo class.)
0319: */
0320: public String getDisabledExpr() {
0321: return (disabledExpr);
0322: }
0323:
0324: /**
0325: * Getter method for "indexed" tag attribute. (Mapping set in associated
0326: * BeanInfo class.)
0327: */
0328: public String getIndexedExpr() {
0329: return (indexedExpr);
0330: }
0331:
0332: /**
0333: * Getter method for "lang" tag attribute. (Mapping set in associated
0334: * BeanInfo class.)
0335: */
0336: public String getLangExpr() {
0337: return (langExpr);
0338: }
0339:
0340: /**
0341: * Getter method for "locale" tag attribute. (Mapping set in associated
0342: * BeanInfo class.)
0343: */
0344: public String getLocaleExpr() {
0345: return (localeExpr);
0346: }
0347:
0348: /**
0349: * Getter method for "module" tag attribute. (Mapping set in associated
0350: * BeanInfo class.)
0351: */
0352: public String getModuleExpr() {
0353: return (moduleExpr);
0354: }
0355:
0356: /**
0357: * Getter method for "onblur" tag attribute. (Mapping set in associated
0358: * BeanInfo class.)
0359: */
0360: public String getOnblurExpr() {
0361: return (onblurExpr);
0362: }
0363:
0364: /**
0365: * Getter method for "onchange" tag attribute. (Mapping set in associated
0366: * BeanInfo class.)
0367: */
0368: public String getOnchangeExpr() {
0369: return (onchangeExpr);
0370: }
0371:
0372: /**
0373: * Getter method for "onclick" tag attribute. (Mapping set in associated
0374: * BeanInfo class.)
0375: */
0376: public String getOnclickExpr() {
0377: return (onclickExpr);
0378: }
0379:
0380: /**
0381: * Getter method for "ondblclick" tag attribute. (Mapping set in
0382: * associated BeanInfo class.)
0383: */
0384: public String getOndblclickExpr() {
0385: return (ondblclickExpr);
0386: }
0387:
0388: /**
0389: * Getter method for "onfocus" tag attribute. (Mapping set in associated
0390: * BeanInfo class.)
0391: */
0392: public String getOnfocusExpr() {
0393: return (onfocusExpr);
0394: }
0395:
0396: /**
0397: * Getter method for "onkeydown" tag attribute. (Mapping set in associated
0398: * BeanInfo class.)
0399: */
0400: public String getOnkeydownExpr() {
0401: return (onkeydownExpr);
0402: }
0403:
0404: /**
0405: * Getter method for "onkeypress" tag attribute. (Mapping set in
0406: * associated BeanInfo class.)
0407: */
0408: public String getOnkeypressExpr() {
0409: return (onkeypressExpr);
0410: }
0411:
0412: /**
0413: * Getter method for "onkeyup" tag attribute. (Mapping set in associated
0414: * BeanInfo class.)
0415: */
0416: public String getOnkeyupExpr() {
0417: return (onkeyupExpr);
0418: }
0419:
0420: /**
0421: * Getter method for "onmousedown" tag attribute. (Mapping set in
0422: * associated BeanInfo class.)
0423: */
0424: public String getOnmousedownExpr() {
0425: return (onmousedownExpr);
0426: }
0427:
0428: /**
0429: * Getter method for "onmousemove" tag attribute. (Mapping set in
0430: * associated BeanInfo class.)
0431: */
0432: public String getOnmousemoveExpr() {
0433: return (onmousemoveExpr);
0434: }
0435:
0436: /**
0437: * Getter method for "onmouseout" tag attribute. (Mapping set in
0438: * associated BeanInfo class.)
0439: */
0440: public String getOnmouseoutExpr() {
0441: return (onmouseoutExpr);
0442: }
0443:
0444: /**
0445: * Getter method for "onmouseover" tag attribute. (Mapping set in
0446: * associated BeanInfo class.)
0447: */
0448: public String getOnmouseoverExpr() {
0449: return (onmouseoverExpr);
0450: }
0451:
0452: /**
0453: * Getter method for "onmouseup" tag attribute. (Mapping set in associated
0454: * BeanInfo class.)
0455: */
0456: public String getOnmouseupExpr() {
0457: return (onmouseupExpr);
0458: }
0459:
0460: /**
0461: * Getter method for "page" tag attribute. (Mapping set in associated
0462: * BeanInfo class.)
0463: */
0464: public String getPageExpr() {
0465: return (pageExpr);
0466: }
0467:
0468: /**
0469: * Getter method for "pageKey" tag attribute. (Mapping set in associated
0470: * BeanInfo class.)
0471: */
0472: public String getPageKeyExpr() {
0473: return (pageKeyExpr);
0474: }
0475:
0476: /**
0477: * Getter method for "property" tag attribute. (Mapping set in associated
0478: * BeanInfo class.)
0479: */
0480: public String getPropertyExpr() {
0481: return (propertyExpr);
0482: }
0483:
0484: /**
0485: * Getter method for "src" tag attribute. (Mapping set in associated
0486: * BeanInfo class.)
0487: */
0488: public String getSrcExpr() {
0489: return (srcExpr);
0490: }
0491:
0492: /**
0493: * Getter method for "srcKey" tag attribute. (Mapping set in associated
0494: * BeanInfo class.)
0495: */
0496: public String getSrcKeyExpr() {
0497: return (srcKeyExpr);
0498: }
0499:
0500: /**
0501: * Getter method for "style" tag attribute. (Mapping set in associated
0502: * BeanInfo class.)
0503: */
0504: public String getStyleExpr() {
0505: return (styleExpr);
0506: }
0507:
0508: /**
0509: * Getter method for "styleClass" tag attribute. (Mapping set in
0510: * associated BeanInfo class.)
0511: */
0512: public String getStyleClassExpr() {
0513: return (styleClassExpr);
0514: }
0515:
0516: /**
0517: * Getter method for "styleId" tag attribute. (Mapping set in associated
0518: * BeanInfo class.)
0519: */
0520: public String getStyleIdExpr() {
0521: return (styleIdExpr);
0522: }
0523:
0524: /**
0525: * Getter method for "tabindex" tag attribute. (Mapping set in associated
0526: * BeanInfo class.)
0527: */
0528: public String getTabindexExpr() {
0529: return (tabindexExpr);
0530: }
0531:
0532: /**
0533: * Getter method for "title" tag attribute. (Mapping set in associated
0534: * BeanInfo class.)
0535: */
0536: public String getTitleExpr() {
0537: return (titleExpr);
0538: }
0539:
0540: /**
0541: * Getter method for "titleKey" tag attribute. (Mapping set in associated
0542: * BeanInfo class.)
0543: */
0544: public String getTitleKeyExpr() {
0545: return (titleKeyExpr);
0546: }
0547:
0548: /**
0549: * Getter method for "value" tag attribute. (Mapping set in associated
0550: * BeanInfo class.)
0551: */
0552: public String getValueExpr() {
0553: return (valueExpr);
0554: }
0555:
0556: /**
0557: * Setter method for "accessKey" tag attribute. (Mapping set in associated
0558: * BeanInfo class.)
0559: */
0560: public void setAccesskeyExpr(String accessKeyExpr) {
0561: this .accessKeyExpr = accessKeyExpr;
0562: }
0563:
0564: /**
0565: * Setter method for "align" tag attribute. (Mapping set in associated
0566: * BeanInfo class.)
0567: */
0568: public void setAlignExpr(String alignExpr) {
0569: this .alignExpr = alignExpr;
0570: }
0571:
0572: /**
0573: * Setter method for "alt" tag attribute. (Mapping set in associated
0574: * BeanInfo class.)
0575: */
0576: public void setAltExpr(String altExpr) {
0577: this .altExpr = altExpr;
0578: }
0579:
0580: /**
0581: * Setter method for "altKey" tag attribute. (Mapping set in associated
0582: * BeanInfo class.)
0583: */
0584: public void setAltKeyExpr(String altKeyExpr) {
0585: this .altKeyExpr = altKeyExpr;
0586: }
0587:
0588: /**
0589: * Setter method for "border" tag attribute. (Mapping set in associated
0590: * BeanInfo class.)
0591: */
0592: public void setBorderExpr(String borderExpr) {
0593: this .borderExpr = borderExpr;
0594: }
0595:
0596: /**
0597: * Setter method for "bundle" tag attribute. (Mapping set in associated
0598: * BeanInfo class.)
0599: */
0600: public void setBundleExpr(String bundleExpr) {
0601: this .bundleExpr = bundleExpr;
0602: }
0603:
0604: /**
0605: * Setter method for "dir" tag attribute. (Mapping set in associated
0606: * BeanInfo class.)
0607: */
0608: public void setDirExpr(String dirExpr) {
0609: this .dirExpr = dirExpr;
0610: }
0611:
0612: /**
0613: * Setter method for "disabled" tag attribute. (Mapping set in associated
0614: * BeanInfo class.)
0615: */
0616: public void setDisabledExpr(String disabledExpr) {
0617: this .disabledExpr = disabledExpr;
0618: }
0619:
0620: /**
0621: * Setter method for "indexed" tag attribute. (Mapping set in associated
0622: * BeanInfo class.)
0623: */
0624: public void setIndexedExpr(String indexedExpr) {
0625: this .indexedExpr = indexedExpr;
0626: }
0627:
0628: /**
0629: * Setter method for "lang" tag attribute. (Mapping set in associated
0630: * BeanInfo class.)
0631: */
0632: public void setLangExpr(String langExpr) {
0633: this .langExpr = langExpr;
0634: }
0635:
0636: /**
0637: * Setter method for "locale" tag attribute. (Mapping set in associated
0638: * BeanInfo class.)
0639: */
0640: public void setLocaleExpr(String localeExpr) {
0641: this .localeExpr = localeExpr;
0642: }
0643:
0644: /**
0645: * Setter method for "module" tag attribute. (Mapping set in associated
0646: * BeanInfo class.)
0647: */
0648: public void setModuleExpr(String moduleExpr) {
0649: this .moduleExpr = moduleExpr;
0650: }
0651:
0652: /**
0653: * Setter method for "onblur" tag attribute. (Mapping set in associated
0654: * BeanInfo class.)
0655: */
0656: public void setOnblurExpr(String onblurExpr) {
0657: this .onblurExpr = onblurExpr;
0658: }
0659:
0660: /**
0661: * Setter method for "onchange" tag attribute. (Mapping set in associated
0662: * BeanInfo class.)
0663: */
0664: public void setOnchangeExpr(String onchangeExpr) {
0665: this .onchangeExpr = onchangeExpr;
0666: }
0667:
0668: /**
0669: * Setter method for "onclick" tag attribute. (Mapping set in associated
0670: * BeanInfo class.)
0671: */
0672: public void setOnclickExpr(String onclickExpr) {
0673: this .onclickExpr = onclickExpr;
0674: }
0675:
0676: /**
0677: * Setter method for "ondblclick" tag attribute. (Mapping set in
0678: * associated BeanInfo class.)
0679: */
0680: public void setOndblclickExpr(String ondblclickExpr) {
0681: this .ondblclickExpr = ondblclickExpr;
0682: }
0683:
0684: /**
0685: * Setter method for "onfocus" tag attribute. (Mapping set in associated
0686: * BeanInfo class.)
0687: */
0688: public void setOnfocusExpr(String onfocusExpr) {
0689: this .onfocusExpr = onfocusExpr;
0690: }
0691:
0692: /**
0693: * Setter method for "onkeydown" tag attribute. (Mapping set in associated
0694: * BeanInfo class.)
0695: */
0696: public void setOnkeydownExpr(String onkeydownExpr) {
0697: this .onkeydownExpr = onkeydownExpr;
0698: }
0699:
0700: /**
0701: * Setter method for "onkeypress" tag attribute. (Mapping set in
0702: * associated BeanInfo class.)
0703: */
0704: public void setOnkeypressExpr(String onkeypressExpr) {
0705: this .onkeypressExpr = onkeypressExpr;
0706: }
0707:
0708: /**
0709: * Setter method for "onkeyup" tag attribute. (Mapping set in associated
0710: * BeanInfo class.)
0711: */
0712: public void setOnkeyupExpr(String onkeyupExpr) {
0713: this .onkeyupExpr = onkeyupExpr;
0714: }
0715:
0716: /**
0717: * Setter method for "onmousedown" tag attribute. (Mapping set in
0718: * associated BeanInfo class.)
0719: */
0720: public void setOnmousedownExpr(String onmousedownExpr) {
0721: this .onmousedownExpr = onmousedownExpr;
0722: }
0723:
0724: /**
0725: * Setter method for "onmousemove" tag attribute. (Mapping set in
0726: * associated BeanInfo class.)
0727: */
0728: public void setOnmousemoveExpr(String onmousemoveExpr) {
0729: this .onmousemoveExpr = onmousemoveExpr;
0730: }
0731:
0732: /**
0733: * Setter method for "onmouseout" tag attribute. (Mapping set in
0734: * associated BeanInfo class.)
0735: */
0736: public void setOnmouseoutExpr(String onmouseoutExpr) {
0737: this .onmouseoutExpr = onmouseoutExpr;
0738: }
0739:
0740: /**
0741: * Setter method for "onmouseover" tag attribute. (Mapping set in
0742: * associated BeanInfo class.)
0743: */
0744: public void setOnmouseoverExpr(String onmouseoverExpr) {
0745: this .onmouseoverExpr = onmouseoverExpr;
0746: }
0747:
0748: /**
0749: * Setter method for "onmouseup" tag attribute. (Mapping set in associated
0750: * BeanInfo class.)
0751: */
0752: public void setOnmouseupExpr(String onmouseupExpr) {
0753: this .onmouseupExpr = onmouseupExpr;
0754: }
0755:
0756: /**
0757: * Setter method for "page" tag attribute. (Mapping set in associated
0758: * BeanInfo class.)
0759: */
0760: public void setPageExpr(String pageExpr) {
0761: this .pageExpr = pageExpr;
0762: }
0763:
0764: /**
0765: * Setter method for "pageKey" tag attribute. (Mapping set in associated
0766: * BeanInfo class.)
0767: */
0768: public void setPageKeyExpr(String pageKeyExpr) {
0769: this .pageKeyExpr = pageKeyExpr;
0770: }
0771:
0772: /**
0773: * Setter method for "property" tag attribute. (Mapping set in associated
0774: * BeanInfo class.)
0775: */
0776: public void setPropertyExpr(String propertyExpr) {
0777: this .propertyExpr = propertyExpr;
0778: }
0779:
0780: /**
0781: * Setter method for "src" tag attribute. (Mapping set in associated
0782: * BeanInfo class.)
0783: */
0784: public void setSrcExpr(String srcExpr) {
0785: this .srcExpr = srcExpr;
0786: }
0787:
0788: /**
0789: * Setter method for "srcKey" tag attribute. (Mapping set in associated
0790: * BeanInfo class.)
0791: */
0792: public void setSrcKeyExpr(String srcKeyExpr) {
0793: this .srcKeyExpr = srcKeyExpr;
0794: }
0795:
0796: /**
0797: * Setter method for "style" tag attribute. (Mapping set in associated
0798: * BeanInfo class.)
0799: */
0800: public void setStyleExpr(String styleExpr) {
0801: this .styleExpr = styleExpr;
0802: }
0803:
0804: /**
0805: * Setter method for "styleClass" tag attribute. (Mapping set in
0806: * associated BeanInfo class.)
0807: */
0808: public void setStyleClassExpr(String styleClassExpr) {
0809: this .styleClassExpr = styleClassExpr;
0810: }
0811:
0812: /**
0813: * Setter method for "styleId" tag attribute. (Mapping set in associated
0814: * BeanInfo class.)
0815: */
0816: public void setStyleIdExpr(String styleIdExpr) {
0817: this .styleIdExpr = styleIdExpr;
0818: }
0819:
0820: /**
0821: * Setter method for "tabindex" tag attribute. (Mapping set in associated
0822: * BeanInfo class.)
0823: */
0824: public void setTabindexExpr(String tabindexExpr) {
0825: this .tabindexExpr = tabindexExpr;
0826: }
0827:
0828: /**
0829: * Setter method for "title" tag attribute. (Mapping set in associated
0830: * BeanInfo class.)
0831: */
0832: public void setTitleExpr(String titleExpr) {
0833: this .titleExpr = titleExpr;
0834: }
0835:
0836: /**
0837: * Setter method for "titleKey" tag attribute. (Mapping set in associated
0838: * BeanInfo class.)
0839: */
0840: public void setTitleKeyExpr(String titleKeyExpr) {
0841: this .titleKeyExpr = titleKeyExpr;
0842: }
0843:
0844: /**
0845: * Setter method for "value" tag attribute. (Mapping set in associated
0846: * BeanInfo class.)
0847: */
0848: public void setValueExpr(String valueExpr) {
0849: this .valueExpr = valueExpr;
0850: }
0851:
0852: /**
0853: * Resets attribute values for tag reuse.
0854: */
0855: public void release() {
0856: super .release();
0857: setAccesskeyExpr(null);
0858: setAlignExpr(null);
0859: setAltExpr(null);
0860: setAltKeyExpr(null);
0861: setBorderExpr(null);
0862: setBundleExpr(null);
0863: setDirExpr(null);
0864: setDisabledExpr(null);
0865: setIndexedExpr(null);
0866: setLangExpr(null);
0867: setLocaleExpr(null);
0868: setModuleExpr(null);
0869: setOnblurExpr(null);
0870: setOnchangeExpr(null);
0871: setOnclickExpr(null);
0872: setOndblclickExpr(null);
0873: setOnfocusExpr(null);
0874: setOnkeydownExpr(null);
0875: setOnkeypressExpr(null);
0876: setOnkeyupExpr(null);
0877: setOnmousedownExpr(null);
0878: setOnmousemoveExpr(null);
0879: setOnmouseoutExpr(null);
0880: setOnmouseoverExpr(null);
0881: setOnmouseupExpr(null);
0882: setPageExpr(null);
0883: setPageKeyExpr(null);
0884: setPropertyExpr(null);
0885: setSrcExpr(null);
0886: setSrcKeyExpr(null);
0887: setStyleExpr(null);
0888: setStyleClassExpr(null);
0889: setStyleIdExpr(null);
0890: setTabindexExpr(null);
0891: setTitleExpr(null);
0892: setTitleKeyExpr(null);
0893: setValueExpr(null);
0894: }
0895:
0896: /**
0897: * Process the start tag.
0898: *
0899: * @throws JspException if a JSP exception has occurred
0900: */
0901: public int doStartTag() throws JspException {
0902: evaluateExpressions();
0903:
0904: return (super .doStartTag());
0905: }
0906:
0907: /**
0908: * Processes all attribute values which use the JSTL expression evaluation
0909: * engine to determine their values.
0910: *
0911: * @throws JspException if a JSP exception has occurred
0912: */
0913: private void evaluateExpressions() throws JspException {
0914: String string = null;
0915: Boolean bool = null;
0916:
0917: if ((string = EvalHelper.evalString("accessKey",
0918: getAccesskeyExpr(), this , pageContext)) != null) {
0919: setAccesskey(string);
0920: }
0921:
0922: // The "align" attribute is deprecated. This needs to be removed when
0923: // the "align" attribute is finally removed.
0924: if ((string = EvalHelper.evalString("align", getAlignExpr(),
0925: this , pageContext)) != null) {
0926: setAlign(string);
0927: }
0928:
0929: if ((string = EvalHelper.evalString("alt", getAltExpr(), this ,
0930: pageContext)) != null) {
0931: setAlt(string);
0932: }
0933:
0934: if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(),
0935: this , pageContext)) != null) {
0936: setAltKey(string);
0937: }
0938:
0939: if ((string = EvalHelper.evalString("border", getBorderExpr(),
0940: this , pageContext)) != null) {
0941: setBorder(string);
0942: }
0943:
0944: if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
0945: this , pageContext)) != null) {
0946: setBundle(string);
0947: }
0948:
0949: if ((string = EvalHelper.evalString("dir", getDirExpr(), this ,
0950: pageContext)) != null) {
0951: setDir(string);
0952: }
0953:
0954: if ((bool = EvalHelper.evalBoolean("disabled",
0955: getDisabledExpr(), this , pageContext)) != null) {
0956: setDisabled(bool.booleanValue());
0957: }
0958:
0959: if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(),
0960: this , pageContext)) != null) {
0961: setIndexed(bool.booleanValue());
0962: }
0963:
0964: if ((string = EvalHelper.evalString("lang", getLangExpr(),
0965: this , pageContext)) != null) {
0966: setLang(string);
0967: }
0968:
0969: if ((string = EvalHelper.evalString("locale", getLocaleExpr(),
0970: this , pageContext)) != null) {
0971: setLocale(string);
0972: }
0973:
0974: if ((string = EvalHelper.evalString("module", getModuleExpr(),
0975: this , pageContext)) != null) {
0976: setModule(string);
0977: }
0978:
0979: if ((string = EvalHelper.evalString("onblur", getOnblurExpr(),
0980: this , pageContext)) != null) {
0981: setOnblur(string);
0982: }
0983:
0984: if ((string = EvalHelper.evalString("onchange",
0985: getOnchangeExpr(), this , pageContext)) != null) {
0986: setOnchange(string);
0987: }
0988:
0989: if ((string = EvalHelper.evalString("onclick",
0990: getOnclickExpr(), this , pageContext)) != null) {
0991: setOnclick(string);
0992: }
0993:
0994: if ((string = EvalHelper.evalString("ondblclick",
0995: getOndblclickExpr(), this , pageContext)) != null) {
0996: setOndblclick(string);
0997: }
0998:
0999: if ((string = EvalHelper.evalString("onfocus",
1000: getOnfocusExpr(), this , pageContext)) != null) {
1001: setOnfocus(string);
1002: }
1003:
1004: if ((string = EvalHelper.evalString("onkeydown",
1005: getOnkeydownExpr(), this , pageContext)) != null) {
1006: setOnkeydown(string);
1007: }
1008:
1009: if ((string = EvalHelper.evalString("onkeypress",
1010: getOnkeypressExpr(), this , pageContext)) != null) {
1011: setOnkeypress(string);
1012: }
1013:
1014: if ((string = EvalHelper.evalString("onkeyup",
1015: getOnkeyupExpr(), this , pageContext)) != null) {
1016: setOnkeyup(string);
1017: }
1018:
1019: if ((string = EvalHelper.evalString("onmousedown",
1020: getOnmousedownExpr(), this , pageContext)) != null) {
1021: setOnmousedown(string);
1022: }
1023:
1024: if ((string = EvalHelper.evalString("onmousemove",
1025: getOnmousemoveExpr(), this , pageContext)) != null) {
1026: setOnmousemove(string);
1027: }
1028:
1029: if ((string = EvalHelper.evalString("onmouseout",
1030: getOnmouseoutExpr(), this , pageContext)) != null) {
1031: setOnmouseout(string);
1032: }
1033:
1034: if ((string = EvalHelper.evalString("onmouseover",
1035: getOnmouseoverExpr(), this , pageContext)) != null) {
1036: setOnmouseover(string);
1037: }
1038:
1039: if ((string = EvalHelper.evalString("onmouseup",
1040: getOnmouseupExpr(), this , pageContext)) != null) {
1041: setOnmouseup(string);
1042: }
1043:
1044: if ((string = EvalHelper.evalString("page", getPageExpr(),
1045: this , pageContext)) != null) {
1046: setPage(string);
1047: }
1048:
1049: if ((string = EvalHelper.evalString("pageKey",
1050: getPageKeyExpr(), this , pageContext)) != null) {
1051: setPageKey(string);
1052: }
1053:
1054: if ((string = EvalHelper.evalString("property",
1055: getPropertyExpr(), this , pageContext)) != null) {
1056: setProperty(string);
1057: }
1058:
1059: if ((string = EvalHelper.evalString("src", getSrcExpr(), this ,
1060: pageContext)) != null) {
1061: setSrc(string);
1062: }
1063:
1064: if ((string = EvalHelper.evalString("srcKey", getSrcKeyExpr(),
1065: this , pageContext)) != null) {
1066: setSrcKey(string);
1067: }
1068:
1069: if ((string = EvalHelper.evalString("style", getStyleExpr(),
1070: this , pageContext)) != null) {
1071: setStyle(string);
1072: }
1073:
1074: if ((string = EvalHelper.evalString("styleClass",
1075: getStyleClassExpr(), this , pageContext)) != null) {
1076: setStyleClass(string);
1077: }
1078:
1079: if ((string = EvalHelper.evalString("styleId",
1080: getStyleIdExpr(), this , pageContext)) != null) {
1081: setStyleId(string);
1082: }
1083:
1084: if ((string = EvalHelper.evalString("tabindex",
1085: getTabindexExpr(), this , pageContext)) != null) {
1086: setTabindex(string);
1087: }
1088:
1089: if ((string = EvalHelper.evalString("title", getTitleExpr(),
1090: this , pageContext)) != null) {
1091: setTitle(string);
1092: }
1093:
1094: if ((string = EvalHelper.evalString("titleKey",
1095: getTitleKeyExpr(), this , pageContext)) != null) {
1096: setTitleKey(string);
1097: }
1098:
1099: if ((string = EvalHelper.evalString("value", getValueExpr(),
1100: this, pageContext)) != null) {
1101: setValue(string);
1102: }
1103: }
1104: }
|