1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.html.HTML; 19 import org.apache.myfaces.taglib.UIComponentBodyTagBase; 20 21 import javax.faces.component.UIComponent; 22 23 40 public abstract class HtmlComponentBodyTagBase 41 extends UIComponentBodyTagBase 42 { 43 45 private String _dir; 47 private String _lang; 48 private String _style; 49 private String _styleClass; 50 private String _title; 51 52 private String _onclick; 54 private String _ondblclick; 55 private String _onkeydown; 56 private String _onkeypress; 57 private String _onkeyup; 58 private String _onmousedown; 59 private String _onmousemove; 60 private String _onmouseout; 61 private String _onmouseover; 62 private String _onmouseup; 63 64 public void release() { 65 super.release(); 66 _dir=null; 67 _lang=null; 68 _style=null; 69 _styleClass=null; 70 _title=null; 71 _onclick=null; 72 _ondblclick=null; 73 _onkeydown=null; 74 _onkeypress=null; 75 _onkeyup=null; 76 _onmousedown=null; 77 _onmousemove=null; 78 _onmouseout=null; 79 _onmouseover=null; 80 _onmouseup=null; 81 } 82 83 protected void setProperties(UIComponent component) 84 { 85 super.setProperties(component); 86 setStringProperty(component, HTML.DIR_ATTR, _dir); 87 setStringProperty(component, HTML.LANG_ATTR, _lang); 88 setStringProperty(component, HTML.STYLE_ATTR, _style); 89 setStringProperty(component, HTML.TITLE_ATTR, _title); 90 setStringProperty(component, HTML.STYLE_CLASS_ATTR, _styleClass); 91 setStringProperty(component, HTML.ONCLICK_ATTR, _onclick); 92 setStringProperty(component, HTML.ONDBLCLICK_ATTR, _ondblclick); 93 setStringProperty(component, HTML.ONMOUSEDOWN_ATTR, _onmousedown); 94 setStringProperty(component, HTML.ONMOUSEUP_ATTR, _onmouseup); 95 setStringProperty(component, HTML.ONMOUSEOVER_ATTR, _onmouseover); 96 setStringProperty(component, HTML.ONMOUSEMOVE_ATTR, _onmousemove); 97 setStringProperty(component, HTML.ONMOUSEOUT_ATTR, _onmouseout); 98 setStringProperty(component, HTML.ONKEYPRESS_ATTR, _onkeypress); 99 setStringProperty(component, HTML.ONKEYDOWN_ATTR, _onkeydown); 100 setStringProperty(component, HTML.ONKEYUP_ATTR, _onkeyup); 101 } 102 103 public void setStyleClass(String styleClass) 104 { 105 _styleClass = styleClass; 106 } 107 108 public void setDir(String dir) 109 { 110 _dir = dir; 111 } 112 113 public void setLang(String lang) 114 { 115 _lang = lang; 116 } 117 118 public void setStyle(String style) 119 { 120 _style = style; 121 } 122 123 public void setTitle(String title) 124 { 125 _title = title; 126 } 127 128 public void setOnclick(String onclick) 129 { 130 _onclick = onclick; 131 } 132 133 public void setOndblclick(String ondblclick) 134 { 135 _ondblclick = ondblclick; 136 } 137 138 public void setOnmousedown(String onmousedown) 139 { 140 _onmousedown = onmousedown; 141 } 142 143 public void setOnmouseup(String onmouseup) 144 { 145 _onmouseup = onmouseup; 146 } 147 148 public void setOnmouseover(String onmouseover) 149 { 150 _onmouseover = onmouseover; 151 } 152 153 public void setOnmousemove(String onmousemove) 154 { 155 _onmousemove = onmousemove; 156 } 157 158 public void setOnmouseout(String onmouseout) 159 { 160 _onmouseout = onmouseout; 161 } 162 163 public void setOnkeypress(String onkeypress) 164 { 165 _onkeypress = onkeypress; 166 } 167 168 public void setOnkeydown(String onkeydown) 169 { 170 _onkeydown = onkeydown; 171 } 172 173 public void setOnkeyup(String onkeyup) 174 { 175 _onkeyup = onkeyup; 176 } 177 } 178 | Popular Tags |