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 44 public abstract class HtmlCommandLinkTagBase 45 extends HtmlComponentTagBase 46 { 47 49 51 53 55 57 private String _accesskey; 59 private String _charset; 60 private String _coords; 61 private String _hreflang; 62 private String _rel; 63 private String _rev; 64 private String _shape; 65 private String _tabindex; 66 private String _type; 67 private String _target; 68 private String _onblur; 71 private String _onfocus; 73 74 private String _action; 76 private String _immediate; 77 private String _actionListener; 78 79 public void release() { 80 super.release(); 81 _accesskey=null; 82 _charset=null; 83 _coords=null; 84 _hreflang=null; 85 _rel=null; 86 _rev=null; 87 _shape=null; 88 _tabindex=null; 89 _type=null; 90 _target=null; 91 _onblur=null; 92 _onfocus=null; 93 _action=null; 94 _immediate=null; 95 _actionListener=null; 96 } 97 98 protected void setProperties(UIComponent component) 99 { 100 super.setProperties(component); 101 102 setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey); 103 setStringProperty(component, HTML.CHARSET_ATTR, _charset); 104 setStringProperty(component, HTML.COORDS_ATTR, _coords); 105 setStringProperty(component, HTML.HREFLANG_ATTR, _hreflang); 106 setStringProperty(component, HTML.REL_ATTR, _rel); 107 setStringProperty(component, HTML.REV_ATTR, _rev); 108 setStringProperty(component, HTML.SHAPE_ATTR, _shape); 109 setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex); 110 setStringProperty(component, HTML.TYPE_ATTR, _type); 111 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 112 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 113 setStringProperty(component, HTML.TARGET_ATTR, _target); 114 setActionProperty(component, _action); 115 setActionListenerProperty(component, _actionListener); 116 setBooleanProperty(component, JSFAttr.IMMEDIATE_ATTR, _immediate); 117 } 118 119 public void setAccesskey(String accesskey) 120 { 121 _accesskey = accesskey; 122 } 123 124 public void setCharset(String charset) 125 { 126 _charset = charset; 127 } 128 129 public void setCoords(String coords) 130 { 131 _coords = coords; 132 } 133 134 public void setHreflang(String hreflang) 135 { 136 _hreflang = hreflang; 137 } 138 139 public void setOnblur(String onblur) 140 { 141 _onblur = onblur; 142 } 143 144 public void setOnfocus(String onfocus) 145 { 146 _onfocus = onfocus; 147 } 148 149 public void setRel(String rel) 150 { 151 _rel = rel; 152 } 153 154 public void setRev(String rev) 155 { 156 _rev = rev; 157 } 158 159 public void setShape(String shape) 160 { 161 _shape = shape; 162 } 163 164 public void setTabindex(String tabindex) 165 { 166 _tabindex = tabindex; 167 } 168 169 public void setType(String type) 170 { 171 _type = type; 172 } 173 174 public void setAction(String action) 175 { 176 _action = action; 177 } 178 179 public void setImmediate(String immediate) 180 { 181 _immediate = immediate; 182 } 183 184 public void setActionListener(String actionListener) 185 { 186 _actionListener = actionListener; 187 } 188 189 190 public void setTarget(String target) 191 { 192 this._target = target; 193 } 194 } 195 | Popular Tags |