1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 68 public class TFoot extends MultiPartElement implements Printable, MouseEvents, KeyEvents 69 { 70 73 { 74 setElementType("tfoot"); 75 } 76 public TFoot() 77 { 78 } 79 80 84 public TFoot setSpan(String span) 85 { 86 addAttribute("span",span); 87 return(this); 88 } 89 90 94 public TFoot setSpan(int span) 95 { 96 addAttribute("span",Integer.toString(span)); 97 return(this); 98 } 99 100 104 public TFoot setWidth(int width) 105 { 106 addAttribute("width",Integer.toString(width)); 107 return(this); 108 } 109 110 114 public TFoot setWidth(String width) 115 { 116 addAttribute("width",width); 117 return(this); 118 } 119 120 124 public TFoot setAlign(String align) 125 { 126 addAttribute("align",align); 127 return(this); 128 } 129 130 134 public TFoot setVAlign(String valign) 135 { 136 addAttribute("valign",valign); 137 return(this); 138 } 139 140 144 public TFoot setChar(String character) 145 { 146 addAttribute("char",character); 147 return(this); 148 } 149 150 155 public TFoot setCharOff(int char_off) 156 { 157 addAttribute("charoff",Integer.toString(char_off)); 158 return(this); 159 } 160 161 166 public TFoot setCharOff(String char_off) 167 { 168 addAttribute("charoff",char_off); 169 return(this); 170 } 171 172 177 public TFoot addElement(String hashcode,Element element) 178 { 179 addElementToRegistry(hashcode,element); 180 return(this); 181 } 182 183 188 public TFoot addElement(String hashcode,String element) 189 { 190 addElementToRegistry(hashcode,element); 191 return(this); 192 } 193 194 198 public TFoot addElement(Element element) 199 { 200 addElementToRegistry(element); 201 return(this); 202 } 203 204 208 public TFoot addElement(String element) 209 { 210 addElementToRegistry(element); 211 return(this); 212 } 213 217 public TFoot removeElement(String hashcode) 218 { 219 removeElementFromRegistry(hashcode); 220 return(this); 221 } 222 223 229 public void setOnClick(String script) 230 { 231 addAttribute ( "onClick", script ); 232 } 233 239 public void setOnDblClick(String script) 240 { 241 addAttribute ( "onDblClick", script ); 242 } 243 249 public void setOnMouseDown(String script) 250 { 251 addAttribute ( "onMouseDown", script ); 252 } 253 259 public void setOnMouseUp(String script) 260 { 261 addAttribute ( "onMouseUp", script ); 262 } 263 269 public void setOnMouseOver(String script) 270 { 271 addAttribute ( "onMouseOver", script ); 272 } 273 279 public void setOnMouseMove(String script) 280 { 281 addAttribute ( "onMouseMove", script ); 282 } 283 289 public void setOnMouseOut(String script) 290 { 291 addAttribute ( "onMouseOut", script ); 292 } 293 294 300 public void setOnKeyPress(String script) 301 { 302 addAttribute ( "onKeyPress", script ); 303 } 304 305 311 public void setOnKeyDown(String script) 312 { 313 addAttribute ( "onKeyDown", script ); 314 } 315 316 322 public void setOnKeyUp(String script) 323 { 324 addAttribute ( "onKeyUp", script ); 325 } 326 } 327 | Popular Tags |