1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 72 public class abbr extends MultiPartElement implements Printable, MouseEvents, KeyEvents 73 { 74 77 { 78 setElementType("abbr"); 79 setCase(LOWERCASE); setAttributeQuote(true); } 82 83 87 public abbr() 88 { 89 } 90 91 96 public abbr(Element element) 97 { 98 addElement(element); 99 } 100 101 106 public abbr(String element) 107 { 108 addElement(element); 109 } 110 111 115 public Element setLang(String lang) 116 { 117 addAttribute("lang",lang); 118 addAttribute("xml:lang",lang); 119 return this; 120 } 121 122 127 public abbr addElement(String hashcode,Element element) 128 { 129 addElementToRegistry(hashcode,element); 130 return(this); 131 } 132 133 138 public abbr addElement(String hashcode,String element) 139 { 140 addElementToRegistry(hashcode,element); 141 return(this); 142 } 143 144 148 public abbr addElement(Element element) 149 { 150 addElementToRegistry(element); 151 return(this); 152 } 153 154 158 public abbr addElement(String element) 159 { 160 addElementToRegistry(element); 161 return(this); 162 } 163 164 168 public abbr removeElement(String hashcode) 169 { 170 removeElementFromRegistry(hashcode); 171 return(this); 172 } 173 174 180 public void setOnClick(String script) 181 { 182 addAttribute ( "onclick", script ); 183 } 184 185 191 public void setOnDblClick(String script) 192 { 193 addAttribute ( "ondblclick", script ); 194 } 195 196 202 public void setOnMouseDown(String script) 203 { 204 addAttribute ( "onmousedown", script ); 205 } 206 207 213 public void setOnMouseUp(String script) 214 { 215 addAttribute ( "onmouseup", script ); 216 } 217 218 224 public void setOnMouseOver(String script) 225 { 226 addAttribute ( "onmouseover", script ); 227 } 228 229 235 public void setOnMouseMove(String script) 236 { 237 addAttribute ( "onomousemove", script ); 238 } 239 240 246 public void setOnMouseOut(String script) 247 { 248 addAttribute ( "onmouseout", script ); 249 } 250 251 257 public void setOnKeyPress(String script) 258 { 259 addAttribute ( "onkeypress", script ); 260 } 261 262 268 public void setOnKeyDown(String script) 269 { 270 addAttribute ( "onkeydown", script ); 271 } 272 273 279 public void setOnKeyUp(String script) 280 { 281 addAttribute ( "onkeyup", script ); 282 } 283 } 284 | Popular Tags |