1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.JSFAttr; 19 import org.apache.myfaces.renderkit.html.HTML; 20 21 import javax.faces.component.UIComponent; 22 23 24 42 public abstract class HtmlInputSecretTagBase 43 extends HtmlInputTagBase 44 { 45 47 49 51 53 private String _accesskey; 55 private String _align; 56 private String _alt; 57 private String _datafld; 58 private String _datasrc; 59 private String _dataformatas; 60 private String _disabled; 61 private String _maxlength; 62 private String _onblur; 63 private String _onchange; 64 private String _onfocus; 65 private String _onselect; 66 private String _readonly; 67 private String _size; 68 private String _tabindex; 69 70 73 76 private String _redisplay; 78 79 public void release() { 80 super.release(); 81 _accesskey=null; 82 _align=null; 83 _alt=null; 84 _datafld=null; 85 _datasrc=null; 86 _dataformatas=null; 87 _disabled=null; 88 _maxlength=null; 89 _onblur=null; 90 _onchange=null; 91 _onfocus=null; 92 _onselect=null; 93 _readonly=null; 94 _size=null; 95 _tabindex=null; 96 _redisplay=null; 97 } 98 99 protected void setProperties(UIComponent component) 100 { 101 super.setProperties(component); 102 103 setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey); 104 setStringProperty(component, HTML.ALIGN_ATTR, _align); 105 setStringProperty(component, HTML.ALT_ATTR, _alt); 106 setStringProperty(component, HTML.DATAFLD_ATTR, _datafld); 107 setStringProperty(component, HTML.DATASRC_ATTR, _datasrc); 108 setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas); 109 setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled); 110 setIntegerProperty(component, HTML.MAXLENGTH_ATTR, _maxlength); 111 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 112 setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange); 113 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 114 setStringProperty(component, HTML.ONSELECT_ATTR, _onselect); 115 setBooleanProperty(component, HTML.READONLY_ATTR, _readonly); 116 setIntegerProperty(component, HTML.SIZE_ATTR, _size); 117 setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex); 118 119 setBooleanProperty(component, JSFAttr.REDISPLAY_ATTR, _redisplay); 120 } 121 122 public void setAccesskey(String accesskey) 123 { 124 _accesskey = accesskey; 125 } 126 127 public void setAlign(String align) 128 { 129 _align = align; 130 } 131 132 public void setAlt(String alt) 133 { 134 _alt = alt; 135 } 136 137 public void setDatafld(String datafld) 138 { 139 _datafld = datafld; 140 } 141 142 public void setDatasrc(String datasrc) 143 { 144 _datasrc = datasrc; 145 } 146 147 public void setDataformatas(String dataformatas) 148 { 149 _dataformatas = dataformatas; 150 } 151 152 public void setDisabled(String disabled) 153 { 154 _disabled = disabled; 155 } 156 157 public void setMaxlength(String maxlength) 158 { 159 _maxlength = maxlength; 160 } 161 162 public void setOnblur(String onblur) 163 { 164 _onblur = onblur; 165 } 166 167 public void setOnchange(String onchange) 168 { 169 _onchange = onchange; 170 } 171 172 public void setOnfocus(String onfocus) 173 { 174 _onfocus = onfocus; 175 } 176 177 public void setOnselect(String onselect) 178 { 179 _onselect = onselect; 180 } 181 182 public void setReadonly(String readonly) 183 { 184 _readonly = readonly; 185 } 186 187 public void setSize(String size) 188 { 189 _size = size; 190 } 191 192 public void setTabindex(String tabindex) 193 { 194 _tabindex = tabindex; 195 } 196 197 public void setRedisplay(String redisplay) 198 { 199 _redisplay = redisplay; 200 } 201 } 202 | Popular Tags |