1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Applet extends MultiPartElement implements Printable 70 { 71 74 { 75 setElementType("applet"); 76 } 77 78 82 public Applet() 83 { 84 } 85 86 90 public Applet setCodeBase(String url) 91 { 92 addAttribute("codebase",url); 93 return(this); 94 } 95 96 100 public Applet setArchive(String url) 101 { 102 addAttribute("archive",url); 103 return(this); 104 } 105 106 110 public Applet setCode(String code) 111 { 112 addAttribute("code",code); 113 return(this); 114 } 115 116 120 public Applet setHeight(String height) 121 { 122 addAttribute("height",height); 123 return(this); 124 } 125 126 130 public Applet setHeight(int height) 131 { 132 addAttribute("height",Integer.toString(height)); 133 return(this); 134 } 135 136 140 public Applet setHeight(double height) 141 { 142 addAttribute("height",Double.toString(height)); 143 return(this); 144 } 145 146 150 public Applet setWidth(String width) 151 { 152 addAttribute("width",width); 153 return(this); 154 } 155 156 160 public Applet setWidth(int width) 161 { 162 addAttribute("width",Integer.toString(width)); 163 return(this); 164 } 165 166 170 public Applet setWidth(double width) 171 { 172 addAttribute("width",Double.toString(width)); 173 return(this); 174 } 175 176 180 public Applet setHSpace(String hspace) 181 { 182 addAttribute("hspace",hspace); 183 return(this); 184 } 185 186 190 public Applet setHSpace(int hspace) 191 { 192 addAttribute("hspace",Integer.toString(hspace)); 193 return(this); 194 } 195 196 200 public Applet setHSpace(double hspace) 201 { 202 addAttribute("hspace",Double.toString(hspace)); 203 return(this); 204 } 205 206 210 public Applet setVSpace(String vspace) 211 { 212 addAttribute("vspace",vspace); 213 return(this); 214 } 215 216 220 public Applet setVSpace(int vspace) 221 { 222 addAttribute("vspace",Integer.toString(vspace)); 223 return(this); 224 } 225 226 230 public Applet setVSpace(double vspace) 231 { 232 addAttribute("vspace",Double.toString(vspace)); 233 return(this); 234 } 235 236 242 public Applet setAlign(String alignment) 243 { 244 addAttribute("align",alignment); 245 return(this); 246 } 247 248 252 public Applet setName(String name) 253 { 254 addAttribute("name",name); 255 return(this); 256 } 257 258 262 public Applet setObject(String object) 264 { 265 addAttribute("object",object); 266 return(this); 267 } 268 269 273 public Applet setAlt(String alt) 274 { 275 addAttribute("alt",alt); 276 return(this); 277 } 278 279 284 public Applet addElement(String hashcode,Element element) 285 { 286 addElementToRegistry(hashcode,element); 287 return(this); 288 } 289 290 295 public Applet addElement(String hashcode,String element) 296 { 297 addElementToRegistry(hashcode,element); 298 return(this); 299 } 300 304 public Applet addElement(String element) 305 { 306 addElementToRegistry(element); 307 return(this); 308 } 309 310 314 public Applet addElement(Element element) 315 { 316 addElementToRegistry(element); 317 return(this); 318 } 319 323 public Applet removeElement(String hashcode) 324 { 325 removeElementFromRegistry(hashcode); 326 return(this); 327 } 328 } 329 | Popular Tags |