1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class map extends MultiPartElement implements Printable, FocusEvents, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("map"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 83 public map() 84 { 85 } 86 87 91 public map(Element element) 92 { 93 addElement(element); 94 } 95 96 100 public map(String element) 101 { 102 addElement(element); 103 } 104 105 110 public map(Element element, String name) 111 { 112 addElement(element); 113 setName ( name ); 114 } 115 116 121 public map(String element, String name) 122 { 123 addElement(element); 124 setName ( name ); 125 } 126 127 131 public map setName(String name) 132 { 133 addAttribute("name",name); 134 return this; 135 } 136 137 141 public Element setLang(String lang) 142 { 143 addAttribute("lang",lang); 144 addAttribute("xml:lang",lang); 145 return this; 146 } 147 148 153 public map addElement(String hashcode,Element element) 154 { 155 addElementToRegistry(hashcode,element); 156 return(this); 157 } 158 159 164 public map addElement(String hashcode,String element) 165 { 166 addElementToRegistry(hashcode,element); 167 return(this); 168 } 169 170 174 public map addElement(Element element) 175 { 176 addElementToRegistry(element); 177 return(this); 178 } 179 180 184 public map addElement(String element) 185 { 186 addElementToRegistry(element); 187 return(this); 188 } 189 193 public map removeElement(String hashcode) 194 { 195 removeElementFromRegistry(hashcode); 196 return(this); 197 } 198 199 207 public void setOnFocus(String script) 208 { 209 addAttribute ( "onfocus", script ); 210 } 211 212 219 public void setOnBlur(String script) 220 { 221 addAttribute ( "onblur", script ); 222 } 223 224 230 public void setOnClick(String script) 231 { 232 addAttribute ( "onclick", script ); 233 } 234 240 public void setOnDblClick(String script) 241 { 242 addAttribute ( "ondblclick", script ); 243 } 244 250 public void setOnMouseDown(String script) 251 { 252 addAttribute ( "onmousedown", script ); 253 } 254 260 public void setOnMouseUp(String script) 261 { 262 addAttribute ( "onmouseup", script ); 263 } 264 270 public void setOnMouseOver(String script) 271 { 272 addAttribute ( "onmouseover", script ); 273 } 274 280 public void setOnMouseMove(String script) 281 { 282 addAttribute ( "onmousemove", script ); 283 } 284 290 public void setOnMouseOut(String script) 291 { 292 addAttribute ( "onmouseout", script ); 293 } 294 295 301 public void setOnKeyPress(String script) 302 { 303 addAttribute ( "onkeypress", script ); 304 } 305 306 312 public void setOnKeyDown(String script) 313 { 314 addAttribute ( "onkeydown", script ); 315 } 316 317 323 public void setOnKeyUp(String script) 324 { 325 addAttribute ( "onkeyup", script ); 326 } 327 } 328 | Popular Tags |