1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class applet extends MultiPartElement implements Printable 71 { 72 75 { 76 setElementType("applet"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 85 public applet() 86 { 87 } 88 89 93 public applet setCodeBase(String url) 94 { 95 addAttribute("codebase",url); 96 return(this); 97 } 98 99 103 public applet setArchive(String url) 104 { 105 addAttribute("archive",url); 106 return(this); 107 } 108 109 113 public applet setCode(String code) 114 { 115 addAttribute("code",code); 116 return(this); 117 } 118 119 123 public applet setHeight(String height) 124 { 125 addAttribute("height",height); 126 return(this); 127 } 128 129 133 public applet setHeight(int height) 134 { 135 addAttribute("height",Integer.toString(height)); 136 return(this); 137 } 138 139 143 public applet setHeight(double height) 144 { 145 addAttribute("height",Double.toString(height)); 146 return(this); 147 } 148 149 153 public applet setWidth(String width) 154 { 155 addAttribute("width",width); 156 return(this); 157 } 158 159 163 public applet setWidth(int width) 164 { 165 addAttribute("width",Integer.toString(width)); 166 return(this); 167 } 168 169 173 public applet setWidth(double width) 174 { 175 addAttribute("width",Double.toString(width)); 176 return(this); 177 } 178 179 183 public applet setHSpace(String hspace) 184 { 185 addAttribute("hspace",hspace); 186 return(this); 187 } 188 189 193 public applet setHSpace(int hspace) 194 { 195 addAttribute("hspace",Integer.toString(hspace)); 196 return(this); 197 } 198 199 203 public applet setHSpace(double hspace) 204 { 205 addAttribute("hspace",Double.toString(hspace)); 206 return(this); 207 } 208 209 213 public applet setVSpace(String vspace) 214 { 215 addAttribute("vspace",vspace); 216 return(this); 217 } 218 219 223 public applet setVSpace(int vspace) 224 { 225 addAttribute("vspace",Integer.toString(vspace)); 226 return(this); 227 } 228 229 233 public applet setVSpace(double vspace) 234 { 235 addAttribute("vspace",Double.toString(vspace)); 236 return(this); 237 } 238 239 245 public applet setAlign(String alignment) 246 { 247 addAttribute("align",alignment); 248 return(this); 249 } 250 251 255 public applet setName(String name) 256 { 257 addAttribute("name",name); 258 return(this); 259 } 260 261 265 public applet setObject(String object) 267 { 268 addAttribute("object",object); 269 return(this); 270 } 271 272 276 public applet setAlt(String alt) 277 { 278 addAttribute("alt",alt); 279 return(this); 280 } 281 282 286 public Element setLang(String lang) 287 { 288 addAttribute("lang",lang); 289 addAttribute("xml:lang",lang); 290 return this; 291 } 292 293 298 public applet addElement(String hashcode,Element element) 299 { 300 addElementToRegistry(hashcode,element); 301 return(this); 302 } 303 304 309 public applet addElement(String hashcode,String element) 310 { 311 addElementToRegistry(hashcode,element); 312 return(this); 313 } 314 315 319 public applet addElement(String element) 320 { 321 addElementToRegistry(element); 322 return(this); 323 } 324 325 329 public applet addElement(Element element) 330 { 331 addElementToRegistry(element); 332 return(this); 333 } 334 335 339 public applet removeElement(String hashcode) 340 { 341 removeElementFromRegistry(hashcode); 342 return(this); 343 } 344 } 345 | Popular Tags |