0001: // WARNING: This file was automatically generated. Do not edit it directly,
0002: // or you will lose your changes.
0003:
0004: /*
0005: * Licensed to the Apache Software Foundation (ASF) under one
0006: * or more contributor license agreements. See the NOTICE file
0007: * distributed with this work for additional information
0008: * regarding copyright ownership. The ASF licenses this file
0009: * to you under the Apache License, Version 2.0 (the
0010: * "License"); you may not use this file except in compliance
0011: * with the License. You may obtain a copy of the License at
0012: *
0013: * http://www.apache.org/licenses/LICENSE-2.0
0014: *
0015: * Unless required by applicable law or agreed to in writing,
0016: * software distributed under the License is distributed on an
0017: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0018: * KIND, either express or implied. See the License for the
0019: * specific language governing permissions and limitations
0020: * under the License.
0021: */
0022: package javax.faces.component.html;
0023:
0024: import javax.el.ValueExpression;
0025: import javax.faces.component.UIInput;
0026: import javax.faces.context.FacesContext;
0027:
0028: /**
0029: *
0030: * <h4>Events:</h4>
0031: * <table border="1" width="100%" cellpadding="3" summary="">
0032: * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
0033: * <th align="left">Type</th>
0034: * <th align="left">Phases</th>
0035: * <th align="left">Description</th>
0036: * </tr>
0037: * <tr class="TableRowColor">
0038: * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
0039: * <td valign="top" nowrap></td>
0040: * <td valign="top">The valueChange event is delivered when the value
0041: attribute is changed.</td>
0042: * </tr>
0043: * </table>
0044: */
0045: public class HtmlInputSecret extends UIInput {
0046:
0047: static public final String COMPONENT_FAMILY = "javax.faces.Input";
0048: static public final String COMPONENT_TYPE = "javax.faces.HtmlInputSecret";
0049:
0050: /**
0051: * Construct an instance of the HtmlInputSecret.
0052: */
0053: public HtmlInputSecret() {
0054: setRendererType("javax.faces.Secret");
0055: }
0056:
0057: // Property: style
0058: private String _style;
0059:
0060: /**
0061: * Gets CSS styling instructions.
0062: *
0063: * @return the new style value
0064: */
0065: public String getStyle() {
0066: if (_style != null) {
0067: return _style;
0068: }
0069: ValueExpression expression = getValueExpression("style");
0070: if (expression != null) {
0071: return (String) expression.getValue(getFacesContext()
0072: .getELContext());
0073: }
0074: return null;
0075: }
0076:
0077: /**
0078: * Sets CSS styling instructions.
0079: *
0080: * @param style the new style value
0081: */
0082: public void setStyle(String style) {
0083: this ._style = style;
0084: }
0085:
0086: // Property: styleClass
0087: private String _styleClass;
0088:
0089: /**
0090: * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute.
0091: *
0092: * @return the new styleClass value
0093: */
0094: public String getStyleClass() {
0095: if (_styleClass != null) {
0096: return _styleClass;
0097: }
0098: ValueExpression expression = getValueExpression("styleClass");
0099: if (expression != null) {
0100: return (String) expression.getValue(getFacesContext()
0101: .getELContext());
0102: }
0103: return null;
0104: }
0105:
0106: /**
0107: * Sets The CSS class for this element. Corresponds to the HTML 'class' attribute.
0108: *
0109: * @param styleClass the new styleClass value
0110: */
0111: public void setStyleClass(String styleClass) {
0112: this ._styleClass = styleClass;
0113: }
0114:
0115: // Property: dir
0116: private String _dir;
0117:
0118: /**
0119: * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
0120: *
0121: * @return the new dir value
0122: */
0123: public String getDir() {
0124: if (_dir != null) {
0125: return _dir;
0126: }
0127: ValueExpression expression = getValueExpression("dir");
0128: if (expression != null) {
0129: return (String) expression.getValue(getFacesContext()
0130: .getELContext());
0131: }
0132: return null;
0133: }
0134:
0135: /**
0136: * Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
0137: *
0138: * @param dir the new dir value
0139: */
0140: public void setDir(String dir) {
0141: this ._dir = dir;
0142: }
0143:
0144: // Property: lang
0145: private String _lang;
0146:
0147: /**
0148: * Gets The base language of this document.
0149: *
0150: * @return the new lang value
0151: */
0152: public String getLang() {
0153: if (_lang != null) {
0154: return _lang;
0155: }
0156: ValueExpression expression = getValueExpression("lang");
0157: if (expression != null) {
0158: return (String) expression.getValue(getFacesContext()
0159: .getELContext());
0160: }
0161: return null;
0162: }
0163:
0164: /**
0165: * Sets The base language of this document.
0166: *
0167: * @param lang the new lang value
0168: */
0169: public void setLang(String lang) {
0170: this ._lang = lang;
0171: }
0172:
0173: // Property: title
0174: private String _title;
0175:
0176: /**
0177: * Gets An advisory title for this element. Often used by the user agent as a tooltip.
0178: *
0179: * @return the new title value
0180: */
0181: public String getTitle() {
0182: if (_title != null) {
0183: return _title;
0184: }
0185: ValueExpression expression = getValueExpression("title");
0186: if (expression != null) {
0187: return (String) expression.getValue(getFacesContext()
0188: .getELContext());
0189: }
0190: return null;
0191: }
0192:
0193: /**
0194: * Sets An advisory title for this element. Often used by the user agent as a tooltip.
0195: *
0196: * @param title the new title value
0197: */
0198: public void setTitle(String title) {
0199: this ._title = title;
0200: }
0201:
0202: // Property: onclick
0203: private String _onclick;
0204:
0205: /**
0206: * Gets Script to be invoked when the element is clicked.
0207: *
0208: * @return the new onclick value
0209: */
0210: public String getOnclick() {
0211: if (_onclick != null) {
0212: return _onclick;
0213: }
0214: ValueExpression expression = getValueExpression("onclick");
0215: if (expression != null) {
0216: return (String) expression.getValue(getFacesContext()
0217: .getELContext());
0218: }
0219: return null;
0220: }
0221:
0222: /**
0223: * Sets Script to be invoked when the element is clicked.
0224: *
0225: * @param onclick the new onclick value
0226: */
0227: public void setOnclick(String onclick) {
0228: this ._onclick = onclick;
0229: }
0230:
0231: // Property: ondblclick
0232: private String _ondblclick;
0233:
0234: /**
0235: * Gets Script to be invoked when the element is double-clicked.
0236: *
0237: * @return the new ondblclick value
0238: */
0239: public String getOndblclick() {
0240: if (_ondblclick != null) {
0241: return _ondblclick;
0242: }
0243: ValueExpression expression = getValueExpression("ondblclick");
0244: if (expression != null) {
0245: return (String) expression.getValue(getFacesContext()
0246: .getELContext());
0247: }
0248: return null;
0249: }
0250:
0251: /**
0252: * Sets Script to be invoked when the element is double-clicked.
0253: *
0254: * @param ondblclick the new ondblclick value
0255: */
0256: public void setOndblclick(String ondblclick) {
0257: this ._ondblclick = ondblclick;
0258: }
0259:
0260: // Property: onmousedown
0261: private String _onmousedown;
0262:
0263: /**
0264: * Gets Script to be invoked when the pointing device is pressed over this element.
0265: *
0266: * @return the new onmousedown value
0267: */
0268: public String getOnmousedown() {
0269: if (_onmousedown != null) {
0270: return _onmousedown;
0271: }
0272: ValueExpression expression = getValueExpression("onmousedown");
0273: if (expression != null) {
0274: return (String) expression.getValue(getFacesContext()
0275: .getELContext());
0276: }
0277: return null;
0278: }
0279:
0280: /**
0281: * Sets Script to be invoked when the pointing device is pressed over this element.
0282: *
0283: * @param onmousedown the new onmousedown value
0284: */
0285: public void setOnmousedown(String onmousedown) {
0286: this ._onmousedown = onmousedown;
0287: }
0288:
0289: // Property: onmouseup
0290: private String _onmouseup;
0291:
0292: /**
0293: * Gets Script to be invoked when the pointing device is released over this element.
0294: *
0295: * @return the new onmouseup value
0296: */
0297: public String getOnmouseup() {
0298: if (_onmouseup != null) {
0299: return _onmouseup;
0300: }
0301: ValueExpression expression = getValueExpression("onmouseup");
0302: if (expression != null) {
0303: return (String) expression.getValue(getFacesContext()
0304: .getELContext());
0305: }
0306: return null;
0307: }
0308:
0309: /**
0310: * Sets Script to be invoked when the pointing device is released over this element.
0311: *
0312: * @param onmouseup the new onmouseup value
0313: */
0314: public void setOnmouseup(String onmouseup) {
0315: this ._onmouseup = onmouseup;
0316: }
0317:
0318: // Property: onmouseover
0319: private String _onmouseover;
0320:
0321: /**
0322: * Gets Script to be invoked when the pointing device is moved into this element.
0323: *
0324: * @return the new onmouseover value
0325: */
0326: public String getOnmouseover() {
0327: if (_onmouseover != null) {
0328: return _onmouseover;
0329: }
0330: ValueExpression expression = getValueExpression("onmouseover");
0331: if (expression != null) {
0332: return (String) expression.getValue(getFacesContext()
0333: .getELContext());
0334: }
0335: return null;
0336: }
0337:
0338: /**
0339: * Sets Script to be invoked when the pointing device is moved into this element.
0340: *
0341: * @param onmouseover the new onmouseover value
0342: */
0343: public void setOnmouseover(String onmouseover) {
0344: this ._onmouseover = onmouseover;
0345: }
0346:
0347: // Property: onmousemove
0348: private String _onmousemove;
0349:
0350: /**
0351: * Gets Script to be invoked when the pointing device is moved while it is in this element.
0352: *
0353: * @return the new onmousemove value
0354: */
0355: public String getOnmousemove() {
0356: if (_onmousemove != null) {
0357: return _onmousemove;
0358: }
0359: ValueExpression expression = getValueExpression("onmousemove");
0360: if (expression != null) {
0361: return (String) expression.getValue(getFacesContext()
0362: .getELContext());
0363: }
0364: return null;
0365: }
0366:
0367: /**
0368: * Sets Script to be invoked when the pointing device is moved while it is in this element.
0369: *
0370: * @param onmousemove the new onmousemove value
0371: */
0372: public void setOnmousemove(String onmousemove) {
0373: this ._onmousemove = onmousemove;
0374: }
0375:
0376: // Property: onmouseout
0377: private String _onmouseout;
0378:
0379: /**
0380: * Gets Script to be invoked when the pointing device is moves out of this element.
0381: *
0382: * @return the new onmouseout value
0383: */
0384: public String getOnmouseout() {
0385: if (_onmouseout != null) {
0386: return _onmouseout;
0387: }
0388: ValueExpression expression = getValueExpression("onmouseout");
0389: if (expression != null) {
0390: return (String) expression.getValue(getFacesContext()
0391: .getELContext());
0392: }
0393: return null;
0394: }
0395:
0396: /**
0397: * Sets Script to be invoked when the pointing device is moves out of this element.
0398: *
0399: * @param onmouseout the new onmouseout value
0400: */
0401: public void setOnmouseout(String onmouseout) {
0402: this ._onmouseout = onmouseout;
0403: }
0404:
0405: // Property: onkeypress
0406: private String _onkeypress;
0407:
0408: /**
0409: * Gets Script to be invoked when a key is pressed over this element.
0410: *
0411: * @return the new onkeypress value
0412: */
0413: public String getOnkeypress() {
0414: if (_onkeypress != null) {
0415: return _onkeypress;
0416: }
0417: ValueExpression expression = getValueExpression("onkeypress");
0418: if (expression != null) {
0419: return (String) expression.getValue(getFacesContext()
0420: .getELContext());
0421: }
0422: return null;
0423: }
0424:
0425: /**
0426: * Sets Script to be invoked when a key is pressed over this element.
0427: *
0428: * @param onkeypress the new onkeypress value
0429: */
0430: public void setOnkeypress(String onkeypress) {
0431: this ._onkeypress = onkeypress;
0432: }
0433:
0434: // Property: onkeydown
0435: private String _onkeydown;
0436:
0437: /**
0438: * Gets Script to be invoked when a key is pressed down over this element.
0439: *
0440: * @return the new onkeydown value
0441: */
0442: public String getOnkeydown() {
0443: if (_onkeydown != null) {
0444: return _onkeydown;
0445: }
0446: ValueExpression expression = getValueExpression("onkeydown");
0447: if (expression != null) {
0448: return (String) expression.getValue(getFacesContext()
0449: .getELContext());
0450: }
0451: return null;
0452: }
0453:
0454: /**
0455: * Sets Script to be invoked when a key is pressed down over this element.
0456: *
0457: * @param onkeydown the new onkeydown value
0458: */
0459: public void setOnkeydown(String onkeydown) {
0460: this ._onkeydown = onkeydown;
0461: }
0462:
0463: // Property: onkeyup
0464: private String _onkeyup;
0465:
0466: /**
0467: * Gets Script to be invoked when a key is released over this element.
0468: *
0469: * @return the new onkeyup value
0470: */
0471: public String getOnkeyup() {
0472: if (_onkeyup != null) {
0473: return _onkeyup;
0474: }
0475: ValueExpression expression = getValueExpression("onkeyup");
0476: if (expression != null) {
0477: return (String) expression.getValue(getFacesContext()
0478: .getELContext());
0479: }
0480: return null;
0481: }
0482:
0483: /**
0484: * Sets Script to be invoked when a key is released over this element.
0485: *
0486: * @param onkeyup the new onkeyup value
0487: */
0488: public void setOnkeyup(String onkeyup) {
0489: this ._onkeyup = onkeyup;
0490: }
0491:
0492: // Property: onblur
0493: private String _onblur;
0494:
0495: /**
0496: * Gets Specifies a script to be invoked when the element loses focus.
0497: *
0498: * @return the new onblur value
0499: */
0500: public String getOnblur() {
0501: if (_onblur != null) {
0502: return _onblur;
0503: }
0504: ValueExpression expression = getValueExpression("onblur");
0505: if (expression != null) {
0506: return (String) expression.getValue(getFacesContext()
0507: .getELContext());
0508: }
0509: return null;
0510: }
0511:
0512: /**
0513: * Sets Specifies a script to be invoked when the element loses focus.
0514: *
0515: * @param onblur the new onblur value
0516: */
0517: public void setOnblur(String onblur) {
0518: this ._onblur = onblur;
0519: }
0520:
0521: // Property: onfocus
0522: private String _onfocus;
0523:
0524: /**
0525: * Gets Specifies a script to be invoked when the element receives focus.
0526: *
0527: * @return the new onfocus value
0528: */
0529: public String getOnfocus() {
0530: if (_onfocus != null) {
0531: return _onfocus;
0532: }
0533: ValueExpression expression = getValueExpression("onfocus");
0534: if (expression != null) {
0535: return (String) expression.getValue(getFacesContext()
0536: .getELContext());
0537: }
0538: return null;
0539: }
0540:
0541: /**
0542: * Sets Specifies a script to be invoked when the element receives focus.
0543: *
0544: * @param onfocus the new onfocus value
0545: */
0546: public void setOnfocus(String onfocus) {
0547: this ._onfocus = onfocus;
0548: }
0549:
0550: // Property: onchange
0551: private String _onchange;
0552:
0553: /**
0554: * Gets Specifies a script to be invoked when the element is modified.
0555: *
0556: * @return the new onchange value
0557: */
0558: public String getOnchange() {
0559: if (_onchange != null) {
0560: return _onchange;
0561: }
0562: ValueExpression expression = getValueExpression("onchange");
0563: if (expression != null) {
0564: return (String) expression.getValue(getFacesContext()
0565: .getELContext());
0566: }
0567: return null;
0568: }
0569:
0570: /**
0571: * Sets Specifies a script to be invoked when the element is modified.
0572: *
0573: * @param onchange the new onchange value
0574: */
0575: public void setOnchange(String onchange) {
0576: this ._onchange = onchange;
0577: }
0578:
0579: // Property: onselect
0580: private String _onselect;
0581:
0582: /**
0583: * Gets Specifies a script to be invoked when the element is selected.
0584: *
0585: * @return the new onselect value
0586: */
0587: public String getOnselect() {
0588: if (_onselect != null) {
0589: return _onselect;
0590: }
0591: ValueExpression expression = getValueExpression("onselect");
0592: if (expression != null) {
0593: return (String) expression.getValue(getFacesContext()
0594: .getELContext());
0595: }
0596: return null;
0597: }
0598:
0599: /**
0600: * Sets Specifies a script to be invoked when the element is selected.
0601: *
0602: * @param onselect the new onselect value
0603: */
0604: public void setOnselect(String onselect) {
0605: this ._onselect = onselect;
0606: }
0607:
0608: // Property: accesskey
0609: private String _accesskey;
0610:
0611: /**
0612: * Gets Sets the access key for this element.
0613: *
0614: * @return the new accesskey value
0615: */
0616: public String getAccesskey() {
0617: if (_accesskey != null) {
0618: return _accesskey;
0619: }
0620: ValueExpression expression = getValueExpression("accesskey");
0621: if (expression != null) {
0622: return (String) expression.getValue(getFacesContext()
0623: .getELContext());
0624: }
0625: return null;
0626: }
0627:
0628: /**
0629: * Sets Sets the access key for this element.
0630: *
0631: * @param accesskey the new accesskey value
0632: */
0633: public void setAccesskey(String accesskey) {
0634: this ._accesskey = accesskey;
0635: }
0636:
0637: // Property: tabindex
0638: private String _tabindex;
0639:
0640: /**
0641: * Gets Specifies the position of this element within the tab order of the document.
0642: *
0643: * @return the new tabindex value
0644: */
0645: public String getTabindex() {
0646: if (_tabindex != null) {
0647: return _tabindex;
0648: }
0649: ValueExpression expression = getValueExpression("tabindex");
0650: if (expression != null) {
0651: return (String) expression.getValue(getFacesContext()
0652: .getELContext());
0653: }
0654: return null;
0655: }
0656:
0657: /**
0658: * Sets Specifies the position of this element within the tab order of the document.
0659: *
0660: * @param tabindex the new tabindex value
0661: */
0662: public void setTabindex(String tabindex) {
0663: this ._tabindex = tabindex;
0664: }
0665:
0666: // Property: disabled
0667: private boolean _disabled = false;
0668: private boolean _disabledSet;
0669:
0670: /**
0671: * Gets When true, this element cannot receive focus.
0672: *
0673: * @return the new disabled value
0674: */
0675: public boolean isDisabled() {
0676: if (_disabledSet) {
0677: return _disabled;
0678: }
0679: ValueExpression expression = getValueExpression("disabled");
0680: if (expression != null) {
0681: return (Boolean) expression.getValue(getFacesContext()
0682: .getELContext());
0683: }
0684: return false;
0685: }
0686:
0687: /**
0688: * Sets When true, this element cannot receive focus.
0689: *
0690: * @param disabled the new disabled value
0691: */
0692: public void setDisabled(boolean disabled) {
0693: this ._disabled = disabled;
0694: this ._disabledSet = true;
0695: }
0696:
0697: // Property: readonly
0698: private boolean _readonly;
0699: private boolean _readonlySet;
0700:
0701: /**
0702: * Gets When true, indicates that this component cannot be modified by the user.
0703: * The element may receive focus unless it has also been disabled.
0704: *
0705: * @return the new readonly value
0706: */
0707: public boolean isReadonly() {
0708: if (_readonlySet) {
0709: return _readonly;
0710: }
0711: ValueExpression expression = getValueExpression("readonly");
0712: if (expression != null) {
0713: return (Boolean) expression.getValue(getFacesContext()
0714: .getELContext());
0715: }
0716: return false;
0717: }
0718:
0719: /**
0720: * Sets When true, indicates that this component cannot be modified by the user.
0721: * The element may receive focus unless it has also been disabled.
0722: *
0723: * @param readonly the new readonly value
0724: */
0725: public void setReadonly(boolean readonly) {
0726: this ._readonly = readonly;
0727: this ._readonlySet = true;
0728: }
0729:
0730: // Property: label
0731: private String _label;
0732:
0733: /**
0734: * Gets A diplay name for this component.
0735: *
0736: * @return the new label value
0737: */
0738: public String getLabel() {
0739: if (_label != null) {
0740: return _label;
0741: }
0742: ValueExpression expression = getValueExpression("label");
0743: if (expression != null) {
0744: return (String) expression.getValue(getFacesContext()
0745: .getELContext());
0746: }
0747: return null;
0748: }
0749:
0750: /**
0751: * Sets A diplay name for this component.
0752: *
0753: * @param label the new label value
0754: */
0755: public void setLabel(String label) {
0756: this ._label = label;
0757: }
0758:
0759: // Property: alt
0760: private String _alt;
0761:
0762: /**
0763: * Gets Specifies alternative text that can be used by a browser that can't show this element.
0764: *
0765: * @return the new alt value
0766: */
0767: public String getAlt() {
0768: if (_alt != null) {
0769: return _alt;
0770: }
0771: ValueExpression expression = getValueExpression("alt");
0772: if (expression != null) {
0773: return (String) expression.getValue(getFacesContext()
0774: .getELContext());
0775: }
0776: return null;
0777: }
0778:
0779: /**
0780: * Sets Specifies alternative text that can be used by a browser that can't show this element.
0781: *
0782: * @param alt the new alt value
0783: */
0784: public void setAlt(String alt) {
0785: this ._alt = alt;
0786: }
0787:
0788: // Property: size
0789: private int _size = -2147483648;
0790: private boolean _sizeSet;
0791:
0792: /**
0793: * Gets The initial width of this control, in characters.
0794: *
0795: * @return the new size value
0796: */
0797: public int getSize() {
0798: if (_sizeSet) {
0799: return _size;
0800: }
0801: ValueExpression expression = getValueExpression("size");
0802: if (expression != null) {
0803: return (Integer) expression.getValue(getFacesContext()
0804: .getELContext());
0805: }
0806: return -2147483648;
0807: }
0808:
0809: /**
0810: * Sets The initial width of this control, in characters.
0811: *
0812: * @param size the new size value
0813: */
0814: public void setSize(int size) {
0815: this ._size = size;
0816: this ._sizeSet = true;
0817: }
0818:
0819: // Property: maxlength
0820: private int _maxlength = -2147483648;
0821: private boolean _maxlengthSet;
0822:
0823: /**
0824: * Gets The maximum number of characters allowed to be entered.
0825: *
0826: * @return the new maxlength value
0827: */
0828: public int getMaxlength() {
0829: if (_maxlengthSet) {
0830: return _maxlength;
0831: }
0832: ValueExpression expression = getValueExpression("maxlength");
0833: if (expression != null) {
0834: return (Integer) expression.getValue(getFacesContext()
0835: .getELContext());
0836: }
0837: return -2147483648;
0838: }
0839:
0840: /**
0841: * Sets The maximum number of characters allowed to be entered.
0842: *
0843: * @param maxlength the new maxlength value
0844: */
0845: public void setMaxlength(int maxlength) {
0846: this ._maxlength = maxlength;
0847: this ._maxlengthSet = true;
0848: }
0849:
0850: // Property: autocomplete
0851: private String _autocomplete;
0852:
0853: /**
0854: * Gets If the value of this attribute is "off", render "off" as the value of the attribute.
0855: * This indicates that the browser should disable its autocomplete feature for this component.
0856: * This is useful for components that perform autocompletion and do not want the browser interfering.
0857: * If this attribute is not set or the value is "on", render nothing.
0858: *
0859: * @return the new autocomplete value
0860: */
0861: public String getAutocomplete() {
0862: if (_autocomplete != null) {
0863: return _autocomplete;
0864: }
0865: ValueExpression expression = getValueExpression("autocomplete");
0866: if (expression != null) {
0867: return (String) expression.getValue(getFacesContext()
0868: .getELContext());
0869: }
0870: return null;
0871: }
0872:
0873: /**
0874: * Sets If the value of this attribute is "off", render "off" as the value of the attribute.
0875: * This indicates that the browser should disable its autocomplete feature for this component.
0876: * This is useful for components that perform autocompletion and do not want the browser interfering.
0877: * If this attribute is not set or the value is "on", render nothing.
0878: *
0879: * @param autocomplete the new autocomplete value
0880: */
0881: public void setAutocomplete(String autocomplete) {
0882: this ._autocomplete = autocomplete;
0883: }
0884:
0885: // Property: redisplay
0886: private boolean _redisplay;
0887: private boolean _redisplaySet;
0888:
0889: /**
0890: * Gets Flag indicating that any existing value in this field should be rendered when the form is created. Because this is a potential security risk, password values are not displayed by default.
0891: *
0892: * @return the new redisplay value
0893: */
0894: public boolean isRedisplay() {
0895: if (_redisplaySet) {
0896: return _redisplay;
0897: }
0898: ValueExpression expression = getValueExpression("redisplay");
0899: if (expression != null) {
0900: return (Boolean) expression.getValue(getFacesContext()
0901: .getELContext());
0902: }
0903: return false;
0904: }
0905:
0906: /**
0907: * Sets Flag indicating that any existing value in this field should be rendered when the form is created. Because this is a potential security risk, password values are not displayed by default.
0908: *
0909: * @param redisplay the new redisplay value
0910: */
0911: public void setRedisplay(boolean redisplay) {
0912: this ._redisplay = redisplay;
0913: this ._redisplaySet = true;
0914: }
0915:
0916: @Override
0917: public Object saveState(FacesContext facesContext) {
0918: Object[] values = new Object[35];
0919: values[0] = super .saveState(facesContext);
0920: values[1] = _style;
0921: values[2] = _styleClass;
0922: values[3] = _dir;
0923: values[4] = _lang;
0924: values[5] = _title;
0925: values[6] = _onclick;
0926: values[7] = _ondblclick;
0927: values[8] = _onmousedown;
0928: values[9] = _onmouseup;
0929: values[10] = _onmouseover;
0930: values[11] = _onmousemove;
0931: values[12] = _onmouseout;
0932: values[13] = _onkeypress;
0933: values[14] = _onkeydown;
0934: values[15] = _onkeyup;
0935: values[16] = _onblur;
0936: values[17] = _onfocus;
0937: values[18] = _onchange;
0938: values[19] = _onselect;
0939: values[20] = _accesskey;
0940: values[21] = _tabindex;
0941: values[22] = _disabled;
0942: values[23] = _disabledSet;
0943: values[24] = _readonly;
0944: values[25] = _readonlySet;
0945: values[26] = _label;
0946: values[27] = _alt;
0947: values[28] = _size;
0948: values[29] = _sizeSet;
0949: values[30] = _maxlength;
0950: values[31] = _maxlengthSet;
0951: values[32] = _autocomplete;
0952: values[33] = _redisplay;
0953: values[34] = _redisplaySet;
0954:
0955: return values;
0956: }
0957:
0958: @Override
0959: public void restoreState(FacesContext facesContext, Object state) {
0960: Object[] values = (Object[]) state;
0961: super .restoreState(facesContext, values[0]);
0962: _style = (String) values[1];
0963: _styleClass = (String) values[2];
0964: _dir = (String) values[3];
0965: _lang = (String) values[4];
0966: _title = (String) values[5];
0967: _onclick = (String) values[6];
0968: _ondblclick = (String) values[7];
0969: _onmousedown = (String) values[8];
0970: _onmouseup = (String) values[9];
0971: _onmouseover = (String) values[10];
0972: _onmousemove = (String) values[11];
0973: _onmouseout = (String) values[12];
0974: _onkeypress = (String) values[13];
0975: _onkeydown = (String) values[14];
0976: _onkeyup = (String) values[15];
0977: _onblur = (String) values[16];
0978: _onfocus = (String) values[17];
0979: _onchange = (String) values[18];
0980: _onselect = (String) values[19];
0981: _accesskey = (String) values[20];
0982: _tabindex = (String) values[21];
0983: _disabled = (Boolean) values[22];
0984: _disabledSet = (Boolean) values[23];
0985: _readonly = (Boolean) values[24];
0986: _readonlySet = (Boolean) values[25];
0987: _label = (String) values[26];
0988: _alt = (String) values[27];
0989: _size = (Integer) values[28];
0990: _sizeSet = (Boolean) values[29];
0991: _maxlength = (Integer) values[30];
0992: _maxlengthSet = (Boolean) values[31];
0993: _autocomplete = (String) values[32];
0994: _redisplay = (Boolean) values[33];
0995: _redisplaySet = (Boolean) values[34];
0996: }
0997:
0998: @Override
0999: public String getFamily() {
1000: return COMPONENT_FAMILY;
1001: }
1002: }
|