1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Map extends MultiPartElement implements Printable, FocusEvents, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("map"); 76 } 77 80 public Map() 81 { 82 } 83 84 88 public Map(Element element) 89 { 90 addElement(element); 91 } 92 93 97 public Map(String element) 98 { 99 addElement(element); 100 } 101 102 107 public Map(Element element, String name) 108 { 109 addElement(element); 110 setName ( name ); 111 } 112 113 118 public Map(String element, String name) 119 { 120 addElement(element); 121 setName ( name ); 122 } 123 124 128 public Map setName(String name) 129 { 130 addAttribute("name",name); 131 return this; 132 } 133 134 139 public Map addElement(String hashcode,Element element) 140 { 141 addElementToRegistry(hashcode,element); 142 return(this); 143 } 144 145 150 public Map addElement(String hashcode,String element) 151 { 152 addElementToRegistry(hashcode,element); 153 return(this); 154 } 155 156 160 public Map addElement(Element element) 161 { 162 addElementToRegistry(element); 163 return(this); 164 } 165 166 170 public Map addElement(String element) 171 { 172 addElementToRegistry(element); 173 return(this); 174 } 175 179 public Map removeElement(String hashcode) 180 { 181 removeElementFromRegistry(hashcode); 182 return(this); 183 } 184 185 193 public void setOnFocus(String script) 194 { 195 addAttribute ( "onFocus", script ); 196 } 197 198 205 public void setOnBlur(String script) 206 { 207 addAttribute ( "onBlur", script ); 208 } 209 210 216 public void setOnClick(String script) 217 { 218 addAttribute ( "onClick", script ); 219 } 220 226 public void setOnDblClick(String script) 227 { 228 addAttribute ( "onDblClick", script ); 229 } 230 236 public void setOnMouseDown(String script) 237 { 238 addAttribute ( "onMouseDown", script ); 239 } 240 246 public void setOnMouseUp(String script) 247 { 248 addAttribute ( "onMouseUp", script ); 249 } 250 256 public void setOnMouseOver(String script) 257 { 258 addAttribute ( "onMouseOver", script ); 259 } 260 266 public void setOnMouseMove(String script) 267 { 268 addAttribute ( "onMouseMove", script ); 269 } 270 276 public void setOnMouseOut(String script) 277 { 278 addAttribute ( "onMouseOut", script ); 279 } 280 281 287 public void setOnKeyPress(String script) 288 { 289 addAttribute ( "onKeyPress", script ); 290 } 291 292 298 public void setOnKeyDown(String script) 299 { 300 addAttribute ( "onKeyDown", script ); 301 } 302 303 309 public void setOnKeyUp(String script) 310 { 311 addAttribute ( "onKeyUp", script ); 312 } 313 } 314 | Popular Tags |