1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Address extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 72 75 { 76 setElementType("address"); 77 } 78 79 83 public Address() 84 { 85 } 86 87 93 public Address(String value) 94 { 95 addElement(value); 96 } 97 98 104 public Address(Span element) 105 { 106 addElement(element); 107 } 108 113 public Address addElement(String hashcode,Element element) 114 { 115 addElementToRegistry(hashcode,element); 116 return(this); 117 } 118 119 124 public Address addElement(String hashcode,String element) 125 { 126 addElementToRegistry(hashcode,element); 127 return(this); 128 } 129 133 public Address addElement(Element element) 134 { 135 addElementToRegistry(element); 136 return(this); 137 } 138 142 public Address addElement(String element) 143 { 144 addElementToRegistry(element); 145 return(this); 146 } 147 151 public Address removeElement(String hashcode) 152 { 153 removeElementFromRegistry(hashcode); 154 return(this); 155 } 156 157 163 public void setOnClick(String script) 164 { 165 addAttribute ( "onClick", script ); 166 } 167 173 public void setOnDblClick(String script) 174 { 175 addAttribute ( "onDblClick", script ); 176 } 177 183 public void setOnMouseDown(String script) 184 { 185 addAttribute ( "onMouseDown", script ); 186 } 187 193 public void setOnMouseUp(String script) 194 { 195 addAttribute ( "onMouseUp", script ); 196 } 197 203 public void setOnMouseOver(String script) 204 { 205 addAttribute ( "onMouseOver", script ); 206 } 207 213 public void setOnMouseMove(String script) 214 { 215 addAttribute ( "onMouseMove", script ); 216 } 217 223 public void setOnMouseOut(String script) 224 { 225 addAttribute ( "onMouseOut", script ); 226 } 227 228 234 public void setOnKeyPress(String script) 235 { 236 addAttribute ( "onKeyPress", script ); 237 } 238 239 245 public void setOnKeyDown(String script) 246 { 247 addAttribute ( "onKeyDown", script ); 248 } 249 250 256 public void setOnKeyUp(String script) 257 { 258 addAttribute ( "onKeyUp", script ); 259 } 260 } 261 | Popular Tags |