1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 71 public class Abbr extends MultiPartElement implements Printable, MouseEvents, KeyEvents 72 { 73 76 { 77 setElementType("abbr"); 78 } 79 83 public Abbr() 84 { 85 } 86 87 92 public Abbr(Element element) 93 { 94 addElement(element); 95 } 96 97 102 public Abbr(String element) 103 { 104 addElement(element); 105 } 106 107 112 public Abbr addElement(String hashcode,Element element) 113 { 114 addElementToRegistry(hashcode,element); 115 return(this); 116 } 117 118 123 public Abbr addElement(String hashcode,String element) 124 { 125 addElementToRegistry(hashcode,element); 126 return(this); 127 } 128 129 133 public Abbr addElement(Element element) 134 { 135 addElementToRegistry(element); 136 return(this); 137 } 138 139 143 public Abbr addElement(String element) 144 { 145 addElementToRegistry(element); 146 return(this); 147 } 148 152 public Abbr removeElement(String hashcode) 153 { 154 removeElementFromRegistry(hashcode); 155 return(this); 156 } 157 158 164 public void setOnClick(String script) 165 { 166 addAttribute ( "onClick", script ); 167 } 168 174 public void setOnDblClick(String script) 175 { 176 addAttribute ( "onDblClick", script ); 177 } 178 184 public void setOnMouseDown(String script) 185 { 186 addAttribute ( "onMouseDown", script ); 187 } 188 194 public void setOnMouseUp(String script) 195 { 196 addAttribute ( "onMouseUp", script ); 197 } 198 204 public void setOnMouseOver(String script) 205 { 206 addAttribute ( "onMouseOver", script ); 207 } 208 214 public void setOnMouseMove(String script) 215 { 216 addAttribute ( "onMouseMove", script ); 217 } 218 224 public void setOnMouseOut(String script) 225 { 226 addAttribute ( "onMouseOut", script ); 227 } 228 229 235 public void setOnKeyPress(String script) 236 { 237 addAttribute ( "onKeyPress", script ); 238 } 239 240 246 public void setOnKeyDown(String script) 247 { 248 addAttribute ( "onKeyDown", script ); 249 } 250 251 257 public void setOnKeyUp(String script) 258 { 259 addAttribute ( "onKeyUp", script ); 260 } 261 } 262 | Popular Tags |