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 HtmlOutputLabelTagBase 43 extends HtmlComponentTagBase 44 { 45 47 49 51 53 private String _accesskey; 55 private String _onblur; 56 private String _onfocus; 57 58 61 private String _for; 63 64 public void release() { 65 super.release(); 66 _accesskey=null; 67 _onblur=null; 68 _onfocus=null; 69 _for=null; 70 } 71 72 protected void setProperties(UIComponent component) 73 { 74 super.setProperties(component); 75 76 setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey); 77 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 78 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 79 80 setStringProperty(component, JSFAttr.FOR_ATTR, _for); 81 } 82 83 public void setAccesskey(String accesskey) 84 { 85 _accesskey = accesskey; 86 } 87 88 public void setOnblur(String onblur) 89 { 90 _onblur = onblur; 91 } 92 93 public void setOnfocus(String onfocus) 94 { 95 _onfocus = onfocus; 96 } 97 98 public void setFor(String aFor) 99 { 100 _for = aFor; 101 } 102 } 103 | Popular Tags |