1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class dt extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("dt"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 84 public dt() 85 { 86 } 87 88 92 public dt(String value) 93 { 94 addElement(value); 95 } 96 97 101 public Element setLang(String lang) 102 { 103 addAttribute("lang",lang); 104 addAttribute("xml:lang",lang); 105 return this; 106 } 107 108 113 public dt addElement(String hashcode,Element element) 114 { 115 addElementToRegistry(hashcode,element); 116 return(this); 117 } 118 119 124 public dt addElement(String hashcode,String element) 125 { 126 addElementToRegistry(hashcode,element); 127 return(this); 128 } 129 130 134 public dt addElement(Element element) 135 { 136 addElementToRegistry(element); 137 return(this); 138 } 139 143 public dt addElement(String element) 144 { 145 addElementToRegistry(element); 146 return(this); 147 } 148 152 public dt 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 |