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 43 public abstract class HtmlSelectMenuTagBase 44 extends HtmlInputTagBase 45 { 46 48 50 52 54 private String _datafld; 56 private String _datasrc; 57 private String _dataformatas; 58 private String _disabled; 59 private String _name; 60 private String _onblur; 61 private String _onchange; 62 private String _onfocus; 63 private String _onselect; 64 private String _tabindex; 65 66 69 72 private String _border; 74 75 public void release() { 76 super.release(); 77 _datafld=null; 78 _datasrc=null; 79 _dataformatas=null; 80 _disabled=null; 81 _name=null; 82 _onblur=null; 83 _onchange=null; 84 _onfocus=null; 85 _onselect=null; 86 _tabindex=null; 87 _border=null; 88 } 89 90 protected void setProperties(UIComponent component) 91 { 92 super.setProperties(component); 93 94 setStringProperty(component, HTML.DATAFLD_ATTR, _datafld); 95 setStringProperty(component, HTML.DATASRC_ATTR, _datasrc); 96 setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas); 97 setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled); 98 setStringProperty(component, HTML.NAME_ATTR, _name); 99 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 100 setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange); 101 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 102 setStringProperty(component, HTML.ONSELECT_ATTR, _onselect); 103 setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex); 104 105 setIntegerProperty(component, HTML.BORDER_ATTR, _border); 106 } 107 108 public void setBorder(String border) 109 { 110 _border = border; 111 } 112 113 public void setDatafld(String datafld) 114 { 115 _datafld = datafld; 116 } 117 118 public void setDatasrc(String datasrc) 119 { 120 _datasrc = datasrc; 121 } 122 123 public void setDataformatas(String dataformatas) 124 { 125 _dataformatas = dataformatas; 126 } 127 128 public void setDisabled(String disabled) 129 { 130 _disabled = disabled; 131 } 132 133 public void setName(String name) 134 { 135 _name = name; 136 } 137 138 public void setOnblur(String onblur) 139 { 140 _onblur = onblur; 141 } 142 143 public void setOnchange(String onchange) 144 { 145 _onchange = onchange; 146 } 147 148 public void setOnfocus(String onfocus) 149 { 150 _onfocus = onfocus; 151 } 152 153 public void setOnselect(String onselect) 154 { 155 _onselect = onselect; 156 } 157 158 public void setTabindex(String tabindex) 159 { 160 _tabindex = tabindex; 161 } 162 163 } 164 | Popular Tags |