1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.html.HTML; 19 20 import javax.faces.component.UIComponent; 21 22 23 41 public abstract class HtmlSelectBooleanCheckboxTagBase 42 extends HtmlInputTagBase 43 { 44 46 48 50 52 private String _accesskey; 54 private String _alt; 55 private String _checked; 56 private String _datafld; 57 private String _datasrc; 58 private String _dataformatas; 59 private String _disabled; 60 private String _onblur; 61 private String _onchange; 62 private String _onfocus; 63 private String _onselect; 64 private String _readonly; 65 private String _tabindex; 66 67 70 73 public void release() { 74 super.release(); 75 _accesskey=null; 76 _alt=null; 77 _checked=null; 78 _datafld=null; 79 _datasrc=null; 80 _dataformatas=null; 81 _disabled=null; 82 _onblur=null; 83 _onchange=null; 84 _onfocus=null; 85 _onselect=null; 86 _readonly=null; 87 _tabindex=null; 88 } 89 90 protected void setProperties(UIComponent component) 91 { 92 super.setProperties(component); 93 94 setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey); 95 setStringProperty(component, HTML.ALT_ATTR, _alt); 96 setBooleanProperty(component, HTML.CHECKED_ATTR, _checked); 97 setStringProperty(component, HTML.DATAFLD_ATTR, _datafld); 98 setStringProperty(component, HTML.DATASRC_ATTR, _datasrc); 99 setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas); 100 setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled); 101 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 102 setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange); 103 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 104 setStringProperty(component, HTML.ONSELECT_ATTR, _onselect); 105 setBooleanProperty(component, HTML.READONLY_ATTR, _readonly); 106 setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex); 107 } 108 109 public void setAccesskey(String accesskey) 110 { 111 _accesskey = accesskey; 112 } 113 114 public void setAlt(String alt) 115 { 116 _alt = alt; 117 } 118 119 public void setChecked(String checked) 120 { 121 _checked = checked; 122 } 123 124 public void setDatafld(String datafld) 125 { 126 _datafld = datafld; 127 } 128 129 public void setDatasrc(String datasrc) 130 { 131 _datasrc = datasrc; 132 } 133 134 public void setDataformatas(String dataformatas) 135 { 136 _dataformatas = dataformatas; 137 } 138 139 public void setDisabled(String disabled) 140 { 141 _disabled = disabled; 142 } 143 144 public void setOnblur(String onblur) 145 { 146 _onblur = onblur; 147 } 148 149 public void setOnchange(String onchange) 150 { 151 _onchange = onchange; 152 } 153 154 public void setOnfocus(String onfocus) 155 { 156 _onfocus = onfocus; 157 } 158 159 public void setOnselect(String onselect) 160 { 161 _onselect = onselect; 162 } 163 164 public void setReadonly(String readonly) 165 { 166 _readonly = readonly; 167 } 168 169 public void setTabindex(String tabindex) 170 { 171 _tabindex = tabindex; 172 } 173 174 } 175 | Popular Tags |