1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class h4 extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("h4"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 85 public h4() 86 { 87 } 88 89 95 public h4(Element element) 96 { 97 addElement(element); 98 } 99 100 106 public h4(String value) 107 { 108 addElement(value); 109 } 110 111 115 public Element setLang(String lang) 116 { 117 addAttribute("lang",lang); 118 addAttribute("xml:lang",lang); 119 return this; 120 } 121 122 127 public h4 addElement(String hashcode,Element element) 128 { 129 addElementToRegistry(hashcode,element); 130 return(this); 131 } 132 133 138 public h4 addElement(String hashcode,String element) 139 { 140 addElementToRegistry(hashcode,element); 141 return(this); 142 } 143 144 148 public h4 addElement(Element element) 149 { 150 addElementToRegistry(element); 151 return(this); 152 } 153 157 public h4 addElement(String element) 158 { 159 addElementToRegistry(element); 160 return(this); 161 } 162 166 public h4 removeElement(String hashcode) 167 { 168 removeElementFromRegistry(hashcode); 169 return(this); 170 } 171 172 178 public void setOnClick(String script) 179 { 180 addAttribute ( "onclick", script ); 181 } 182 188 public void setOnDblClick(String script) 189 { 190 addAttribute ( "ondblclick", script ); 191 } 192 198 public void setOnMouseDown(String script) 199 { 200 addAttribute ( "onmousedown", script ); 201 } 202 208 public void setOnMouseUp(String script) 209 { 210 addAttribute ( "onmouseup", script ); 211 } 212 218 public void setOnMouseOver(String script) 219 { 220 addAttribute ( "onmouseover", script ); 221 } 222 228 public void setOnMouseMove(String script) 229 { 230 addAttribute ( "onmousemove", script ); 231 } 232 238 public void setOnMouseOut(String script) 239 { 240 addAttribute ( "onmouseout", script ); 241 } 242 243 249 public void setOnKeyPress(String script) 250 { 251 addAttribute ( "onkeypress", script ); 252 } 253 254 260 public void setOnKeyDown(String script) 261 { 262 addAttribute ( "onkeydown", script ); 263 } 264 265 271 public void setOnKeyUp(String script) 272 { 273 addAttribute ( "onkeyup", script ); 274 } 275 } 276 | Popular Tags |