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