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 HtmlCommandButtonTagBase 43 extends HtmlComponentTagBase 44 { 45 47 49 51 53 55 private String _accesskey; 57 private String _alt; 58 private String _disabled; 59 private String _onblur; 60 private String _onchange; 61 private String _onfocus; 62 private String _onselect; 63 private String _size; 64 private String _tabindex; 65 private String _type; 66 67 private String _action; 69 private String _immediate; 70 private String _actionListener; 71 72 private String _image; 74 75 public void release() { 76 super.release(); 77 _accesskey=null; 78 _alt=null; 79 _disabled=null; 80 _onblur=null; 81 _onchange=null; 82 _onfocus=null; 83 _onselect=null; 84 _size=null; 85 _tabindex=null; 86 _type=null; 87 _action=null; 88 _immediate=null; 89 _actionListener=null; 90 _image=null; 91 } 92 93 protected void setProperties(UIComponent component) 94 { 95 super.setProperties(component); 96 97 setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey); 98 setStringProperty(component, HTML.ALT_ATTR, _alt); 99 setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled); 100 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 101 setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange); 102 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 103 setStringProperty(component, HTML.ONSELECT_ATTR, _onselect); 104 setStringProperty(component, HTML.SIZE_ATTR, _size); 105 setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex); 106 setStringProperty(component, HTML.TYPE_ATTR, _type); 107 setActionProperty(component, _action); 108 setActionListenerProperty(component, _actionListener); 109 setBooleanProperty(component, JSFAttr.IMMEDIATE_ATTR, _immediate); 110 setStringProperty(component, JSFAttr.IMAGE_ATTR, _image); 111 } 112 113 public void setAccesskey(String accesskey) 114 { 115 _accesskey = accesskey; 116 } 117 118 public void setAlt(String alt) 119 { 120 _alt = alt; 121 } 122 123 public void setDisabled(String disabled) 124 { 125 _disabled = disabled; 126 } 127 128 public void setOnblur(String onblur) 129 { 130 _onblur = onblur; 131 } 132 133 public void setOnchange(String onchange) 134 { 135 _onchange = onchange; 136 } 137 138 public void setOnfocus(String onfocus) 139 { 140 _onfocus = onfocus; 141 } 142 143 public void setOnselect(String onselect) 144 { 145 _onselect = onselect; 146 } 147 148 public void setSize(String size) 149 { 150 _size = size; 151 } 152 153 public void setTabindex(String tabindex) 154 { 155 _tabindex = tabindex; 156 } 157 158 public void setType(String type) 159 { 160 _type = type; 161 } 162 163 public void setAction(String action) 164 { 165 _action = action; 166 } 167 168 public void setImmediate(String immediate) 169 { 170 _immediate = immediate; 171 } 172 173 public void setImage(String image) 174 { 175 _image = image; 176 } 177 178 public void setActionListener(String actionListener) 179 { 180 _actionListener = actionListener; 181 } 182 } 183 | Popular Tags |