1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class del extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("del"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 84 public del() 85 { 86 } 87 88 92 public del setCite(String url) 93 { 94 addAttribute("cite",url); 95 return(this); 96 } 97 98 102 public del setDateTime(String datetime) 103 { 104 addAttribute("datetime",datetime); 105 return(this); 106 } 107 108 112 public Element setLang(String lang) 113 { 114 addAttribute("lang",lang); 115 addAttribute("xml:lang",lang); 116 return this; 117 } 118 119 124 public del addElement(String hashcode,Element element) 125 { 126 addElementToRegistry(hashcode,element); 127 return(this); 128 } 129 130 135 public del addElement(String hashcode,String element) 136 { 137 addElementToRegistry(hashcode,element); 138 return(this); 139 } 140 144 public del addElement(Element element) 145 { 146 addElementToRegistry(element); 147 return(this); 148 } 149 150 154 public del addElement(String element) 155 { 156 addElementToRegistry(element); 157 return(this); 158 } 159 163 public del removeElement(String hashcode) 164 { 165 removeElementFromRegistry(hashcode); 166 return(this); 167 } 168 169 175 public void setOnClick(String script) 176 { 177 addAttribute ( "onclick", script ); 178 } 179 185 public void setOnDblClick(String script) 186 { 187 addAttribute ( "ondblclick", script ); 188 } 189 195 public void setOnMouseDown(String script) 196 { 197 addAttribute ( "onmousedown", script ); 198 } 199 205 public void setOnMouseUp(String script) 206 { 207 addAttribute ( "onmouseup", script ); 208 } 209 215 public void setOnMouseOver(String script) 216 { 217 addAttribute ( "onmouseover", script ); 218 } 219 225 public void setOnMouseMove(String script) 226 { 227 addAttribute ( "onmousemove", script ); 228 } 229 235 public void setOnMouseOut(String script) 236 { 237 addAttribute ( "onmouseout", script ); 238 } 239 240 246 public void setOnKeyPress(String script) 247 { 248 addAttribute ( "onkeypress", script ); 249 } 250 251 257 public void setOnKeyDown(String script) 258 { 259 addAttribute ( "onkeydown", script ); 260 } 261 262 268 public void setOnKeyUp(String script) 269 { 270 addAttribute ( "onkeyup", script ); 271 } 272 } 273 | Popular Tags |