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 HtmlSelectManyCheckboxTagBase 43 extends HtmlInputTagBase 44 { 45 47 49 51 53 private String _accesskey; 55 private String _alt; 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 _size; private String _tabindex; 67 68 71 74 private String _disabledClass; 76 private String _enabledClass; 77 private String _layout; 78 79 84 85 public void release() { 86 super.release(); 87 _accesskey=null; 88 _alt=null; 89 _datafld=null; 90 _datasrc=null; 91 _dataformatas=null; 92 _disabled=null; 93 _onblur=null; 94 _onchange=null; 95 _onfocus=null; 96 _onselect=null; 97 _readonly=null; 98 _size=null; 99 _tabindex=null; 100 _disabledClass=null; 101 _enabledClass=null; 102 _layout=null; 103 } 104 105 protected void setProperties(UIComponent component) 106 { 107 super.setProperties(component); 108 109 setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey); 110 setStringProperty(component, HTML.ALT_ATTR, _alt); 111 setStringProperty(component, HTML.DATAFLD_ATTR, _datafld); 112 setStringProperty(component, HTML.DATASRC_ATTR, _datasrc); 113 setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas); 114 setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled); 115 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 116 setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange); 117 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 118 setStringProperty(component, HTML.ONSELECT_ATTR, _onselect); 119 setBooleanProperty(component, HTML.READONLY_ATTR, _readonly); 120 setIntegerProperty(component, HTML.SIZE_ATTR, _size); 121 setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex); 122 123 setStringProperty(component, JSFAttr.DISABLED_CLASS_ATTR, _disabledClass); 124 setStringProperty(component, JSFAttr.ENABLED_CLASS_ATTR, _enabledClass); 125 setStringProperty(component, JSFAttr.LAYOUT_ATTR, _layout); 126 } 127 128 public void setAccesskey(String accesskey) 129 { 130 _accesskey = accesskey; 131 } 132 133 public void setAlt(String alt) 134 { 135 _alt = alt; 136 } 137 138 public void setDatafld(String datafld) 139 { 140 _datafld = datafld; 141 } 142 143 public void setDatasrc(String datasrc) 144 { 145 _datasrc = datasrc; 146 } 147 148 public void setDataformatas(String dataformatas) 149 { 150 _dataformatas = dataformatas; 151 } 152 153 public void setDisabled(String disabled) 154 { 155 _disabled = disabled; 156 } 157 158 public void setOnblur(String onblur) 159 { 160 _onblur = onblur; 161 } 162 163 public void setOnchange(String onchange) 164 { 165 _onchange = onchange; 166 } 167 168 public void setOnfocus(String onfocus) 169 { 170 _onfocus = onfocus; 171 } 172 173 public void setOnselect(String onselect) 174 { 175 _onselect = onselect; 176 } 177 178 public void setReadonly(String readonly) 179 { 180 _readonly = readonly; 181 } 182 183 public void setSize(String size) 184 { 185 _size = size; 186 } 187 188 public void setTabindex(String tabindex) 189 { 190 _tabindex = tabindex; 191 } 192 193 public void setDisabledClass(String disabledClass) 194 { 195 _disabledClass = disabledClass; 196 } 197 198 public void setEnabledClass(String enabledClass) 199 { 200 _enabledClass = enabledClass; 201 } 202 203 public void setLayout(String layout) 204 { 205 _layout = layout; 206 } 207 } 208 | Popular Tags |