1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Del extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("del"); 76 } 77 78 81 public Del() 82 { 83 } 84 85 89 public Del setCite(String url) 90 { 91 addAttribute("Cite",url); 92 return(this); 93 } 94 95 99 public Del setDateTime(String datetime) 100 { 101 addAttribute("datetime",datetime); 102 return(this); 103 } 104 105 110 public Del addElement(String hashcode,Element element) 111 { 112 addElementToRegistry(hashcode,element); 113 return(this); 114 } 115 116 121 public Del addElement(String hashcode,String element) 122 { 123 addElementToRegistry(hashcode,element); 124 return(this); 125 } 126 130 public Del addElement(Element element) 131 { 132 addElementToRegistry(element); 133 return(this); 134 } 135 136 140 public Del addElement(String element) 141 { 142 addElementToRegistry(element); 143 return(this); 144 } 145 149 public Del removeElement(String hashcode) 150 { 151 removeElementFromRegistry(hashcode); 152 return(this); 153 } 154 155 161 public void setOnClick(String script) 162 { 163 addAttribute ( "onClick", script ); 164 } 165 171 public void setOnDblClick(String script) 172 { 173 addAttribute ( "onDblClick", script ); 174 } 175 181 public void setOnMouseDown(String script) 182 { 183 addAttribute ( "onMouseDown", script ); 184 } 185 191 public void setOnMouseUp(String script) 192 { 193 addAttribute ( "onMouseUp", script ); 194 } 195 201 public void setOnMouseOver(String script) 202 { 203 addAttribute ( "onMouseOver", script ); 204 } 205 211 public void setOnMouseMove(String script) 212 { 213 addAttribute ( "onMouseMove", script ); 214 } 215 221 public void setOnMouseOut(String script) 222 { 223 addAttribute ( "onMouseOut", script ); 224 } 225 226 232 public void setOnKeyPress(String script) 233 { 234 addAttribute ( "onKeyPress", script ); 235 } 236 237 243 public void setOnKeyDown(String script) 244 { 245 addAttribute ( "onKeyDown", script ); 246 } 247 248 254 public void setOnKeyUp(String script) 255 { 256 addAttribute ( "onKeyUp", script ); 257 } 258 } 259 | Popular Tags |