1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class address extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 73 76 { 77 setElementType("address"); 78 setCase(LOWERCASE); 79 setAttributeQuote(true); 80 } 81 82 86 public address() 87 { 88 } 89 90 96 public address(String value) 97 { 98 addElement(value); 99 } 100 101 107 public address(span element) 108 { 109 addElement(element); 110 } 111 112 116 public Element setLang(String lang) 117 { 118 addAttribute("lang",lang); 119 addAttribute("xml:lang",lang); 120 return this; 121 } 122 123 128 public address addElement(String hashcode,Element element) 129 { 130 addElementToRegistry(hashcode,element); 131 return(this); 132 } 133 134 139 public address addElement(String hashcode,String element) 140 { 141 addElementToRegistry(hashcode,element); 142 return(this); 143 } 144 148 public address addElement(Element element) 149 { 150 addElementToRegistry(element); 151 return(this); 152 } 153 157 public address addElement(String element) 158 { 159 addElementToRegistry(element); 160 return(this); 161 } 162 166 public address 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 |