1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class h6 extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("h6"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 84 public h6() 85 { 86 } 87 88 94 public h6(Element element) 95 { 96 addElement(element); 97 } 98 99 105 public h6(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 h6 addElement(String hashcode,Element element) 127 { 128 addElementToRegistry(hashcode,element); 129 return(this); 130 } 131 132 137 public h6 addElement(String hashcode,String element) 138 { 139 addElementToRegistry(hashcode,element); 140 return(this); 141 } 142 143 147 public h6 addElement(Element element) 148 { 149 addElementToRegistry(element); 150 return(this); 151 } 152 153 157 public h6 addElement(String element) 158 { 159 addElementToRegistry(element); 160 return(this); 161 } 162 166 public h6 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 |