1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class dd extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("dd"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 83 public dd() 84 { 85 } 86 87 91 public dd(String value) 92 { 93 addElement(value); 94 } 95 96 100 public Element setLang(String lang) 101 { 102 addAttribute("lang",lang); 103 addAttribute("xml:lang",lang); 104 return this; 105 } 106 107 112 public dd addElement(String hashcode,Element element) 113 { 114 addElementToRegistry(hashcode,element); 115 return(this); 116 } 117 118 123 public dd addElement(String hashcode,String element) 124 { 125 addElementToRegistry(hashcode,element); 126 return(this); 127 } 128 132 public dd addElement(Element element) 133 { 134 addElementToRegistry(element); 135 return(this); 136 } 137 141 public dd addElement(String element) 142 { 143 addElementToRegistry(element); 144 return(this); 145 } 146 150 public dd removeElement(String hashcode) 151 { 152 removeElementFromRegistry(hashcode); 153 return(this); 154 } 155 156 162 public void setOnClick(String script) 163 { 164 addAttribute ( "onclick", script ); 165 } 166 172 public void setOnDblClick(String script) 173 { 174 addAttribute ( "ondblclick", script ); 175 } 176 182 public void setOnMouseDown(String script) 183 { 184 addAttribute ( "onmousedown", script ); 185 } 186 192 public void setOnMouseUp(String script) 193 { 194 addAttribute ( "onmouseup", script ); 195 } 196 202 public void setOnMouseOver(String script) 203 { 204 addAttribute ( "onmouseover", script ); 205 } 206 212 public void setOnMouseMove(String script) 213 { 214 addAttribute ( "onmousemove", script ); 215 } 216 222 public void setOnMouseOut(String script) 223 { 224 addAttribute ( "onmouseout", script ); 225 } 226 227 233 public void setOnKeyPress(String script) 234 { 235 addAttribute ( "onkeypress", script ); 236 } 237 238 244 public void setOnKeyDown(String script) 245 { 246 addAttribute ( "onkeydown", script ); 247 } 248 249 255 public void setOnKeyUp(String script) 256 { 257 addAttribute ( "onkeyup", script ); 258 } 259 } 260 | Popular Tags |