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