1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class dl extends MultiPartElement implements Printable, MouseEvents, KeyEvents 71 { 72 75 { 76 setElementType("dl"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 84 public dl() 85 { 86 } 87 88 92 public Element setLang(String lang) 93 { 94 addAttribute("lang",lang); 95 addAttribute("xml:lang",lang); 96 return this; 97 } 98 99 104 public dl addElement(String hashcode,Element element) 105 { 106 addElementToRegistry(hashcode,element); 107 return(this); 108 } 109 110 115 public dl addElement(String hashcode,String element) 116 { 117 addElementToRegistry(hashcode,element); 118 return(this); 119 } 120 124 public dl addElement(Element element) 125 { 126 addElementToRegistry(element); 127 return(this); 128 } 129 130 134 public dl addElement(String element) 135 { 136 addElementToRegistry(element); 137 return(this); 138 } 139 143 public dl removeElement(String hashcode) 144 { 145 removeElementFromRegistry(hashcode); 146 return(this); 147 } 148 149 155 public void setOnClick(String script) 156 { 157 addAttribute ( "onclick", script ); 158 } 159 165 public void setOnDblClick(String script) 166 { 167 addAttribute ( "ondblclick", script ); 168 } 169 175 public void setOnMouseDown(String script) 176 { 177 addAttribute ( "onmousedown", script ); 178 } 179 185 public void setOnMouseUp(String script) 186 { 187 addAttribute ( "onmouseup", script ); 188 } 189 195 public void setOnMouseOver(String script) 196 { 197 addAttribute ( "onmouseover", script ); 198 } 199 205 public void setOnMouseMove(String script) 206 { 207 addAttribute ( "onmousemove", script ); 208 } 209 215 public void setOnMouseOut(String script) 216 { 217 addAttribute ( "onmouseout", script ); 218 } 219 220 226 public void setOnKeyPress(String script) 227 { 228 addAttribute ( "onkeypress", script ); 229 } 230 231 237 public void setOnKeyDown(String script) 238 { 239 addAttribute ( "onkeydown", script ); 240 } 241 242 248 public void setOnKeyUp(String script) 249 { 250 addAttribute ( "onkeyup", script ); 251 } 252 } 253 | Popular Tags |