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