1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 69 public class thead extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("thead"); 76 setCase(LOWERCASE); 77 setAttributeQuote(true); 78 } 79 public thead() 80 { 81 } 82 83 87 public thead setSpan(String span) 88 { 89 addAttribute("span",span); 90 return(this); 91 } 92 93 97 public thead setSpan(int span) 98 { 99 addAttribute("span",Integer.toString(span)); 100 return(this); 101 } 102 103 107 public thead setWidth(int width) 108 { 109 addAttribute("width",Integer.toString(width)); 110 return(this); 111 } 112 113 117 public thead setWidth(String width) 118 { 119 addAttribute("width",width); 120 return(this); 121 } 122 123 127 public thead setAlign(String align) 128 { 129 addAttribute("align",align); 130 return(this); 131 } 132 133 137 public thead setVAlign(String valign) 138 { 139 addAttribute("valign",valign); 140 return(this); 141 } 142 143 147 public thead setChar(String character) 148 { 149 addAttribute("char",character); 150 return(this); 151 } 152 153 158 public thead setCharOff(int char_off) 159 { 160 addAttribute("charoff",Integer.toString(char_off)); 161 return(this); 162 } 163 164 169 public thead setCharOff(String char_off) 170 { 171 addAttribute("charoff",char_off); 172 return(this); 173 } 174 175 179 public Element setLang(String lang) 180 { 181 addAttribute("lang",lang); 182 addAttribute("xml:lang",lang); 183 return this; 184 } 185 186 191 public thead addElement(String hashcode,Element element) 192 { 193 addElementToRegistry(hashcode,element); 194 return(this); 195 } 196 197 202 public thead addElement(String hashcode,String element) 203 { 204 addElementToRegistry(hashcode,element); 205 return(this); 206 } 207 208 212 public thead addElement(Element element) 213 { 214 addElementToRegistry(element); 215 return(this); 216 } 217 218 222 public thead addElement(String element) 223 { 224 addElementToRegistry(element); 225 return(this); 226 } 227 231 public thead removeElement(String hashcode) 232 { 233 removeElementFromRegistry(hashcode); 234 return(this); 235 } 236 237 243 public void setOnClick(String script) 244 { 245 addAttribute ( "onclick", script ); 246 } 247 253 public void setOnDblClick(String script) 254 { 255 addAttribute ( "ondblclick", script ); 256 } 257 263 public void setOnMouseDown(String script) 264 { 265 addAttribute ( "onmousedown", script ); 266 } 267 273 public void setOnMouseUp(String script) 274 { 275 addAttribute ( "onmouseup", script ); 276 } 277 283 public void setOnMouseOver(String script) 284 { 285 addAttribute ( "onmouseover", script ); 286 } 287 293 public void setOnMouseMove(String script) 294 { 295 addAttribute ( "onmousemove", script ); 296 } 297 303 public void setOnMouseOut(String script) 304 { 305 addAttribute ( "onmouseout", script ); 306 } 307 308 314 public void setOnKeyPress(String script) 315 { 316 addAttribute ( "onkeypress", script ); 317 } 318 319 325 public void setOnKeyDown(String script) 326 { 327 addAttribute ( "onkeydown", script ); 328 } 329 330 336 public void setOnKeyUp(String script) 337 { 338 addAttribute ( "onkeyup", script ); 339 } 340 } 341 | Popular Tags |