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