1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class iframe extends MultiPartElement implements Printable 71 { 72 public final static String yes = "yes"; 73 public final static String no = "no"; 74 public final static String auto = "auto"; 75 76 79 { 80 setElementType("iframe"); 81 setCase(LOWERCASE); 82 setAttributeQuote(true); 83 } 84 87 public iframe() 88 { 89 } 90 91 95 public iframe(Element element) 96 { 97 addElement(element); 98 } 99 100 104 public iframe(String element) 105 { 106 addElement(element); 107 } 108 109 114 public iframe(Element element, String name) 115 { 116 addElement(element); 117 setName(name); 118 } 119 120 125 public iframe(String element, String name) 126 { 127 addElement(element); 128 setName(name); 129 } 130 131 137 public iframe(Element element, String name, String src) 138 { 139 addElement(element); 140 setName(name); 141 setSrc(src); 142 } 143 144 150 public iframe(String element, String name, String src) 151 { 152 addElement(element); 153 setName(name); 154 setSrc(src); 155 } 156 157 161 public iframe setLongDesc(String longdesc) 162 { 163 addAttribute("longdesc",longdesc); 164 return this; 165 } 166 167 171 public iframe setName(String name) 172 { 173 addAttribute("name",name); 174 return this; 175 } 176 177 181 public iframe setSrc(String src) 182 { 183 addAttribute("src",src); 184 return this; 185 } 186 187 191 public iframe setFrameBorder(boolean frameborder) 192 { 193 if (frameborder) 194 addAttribute("frameborder",Integer.toString(1)); 195 else 196 addAttribute("frameborder",Integer.toString(0)); 197 return this; 198 } 199 200 204 public iframe setMarginWidth(int marginwidth) 205 { 206 setMarginWidth(Integer.toString(marginwidth)); 207 return this; 208 } 209 210 214 public iframe setMarginWidth(String marginwidth) 215 { 216 addAttribute("marginwidth",marginwidth); 217 return this; 218 } 219 220 221 225 public iframe setHeight(String height) 226 { 227 addAttribute("height",height); 228 return this; 229 } 230 231 235 public iframe setHeight(int height) 236 { 237 addAttribute("height",Integer.toString(height)); 238 return this; 239 } 240 241 245 public iframe setWidth(String width) 246 { 247 addAttribute("width",width); 248 return this; 249 } 250 251 255 public iframe setWidth(int width) 256 { 257 addAttribute("width",Integer.toString(width)); 258 return this; 259 } 260 261 265 public iframe setMarginHeight(int marginheight) 266 { 267 setMarginHeight(Integer.toString(marginheight)); 268 return this; 269 } 270 271 275 public iframe setMarginHeight(String marginheight) 276 { 277 addAttribute("marginheight",marginheight); 278 return this; 279 } 280 281 285 public iframe setScrolling(String scrolling) 286 { 287 addAttribute("scrolling",scrolling); 288 return this; 289 } 290 291 297 public iframe setAlign(String align) 298 { 299 addAttribute("align",align); 300 return(this); 301 } 302 303 307 public Element setLang(String lang) 308 { 309 addAttribute("lang",lang); 310 addAttribute("xml:lang",lang); 311 return this; 312 } 313 314 319 public iframe addElement(String hashcode,Element element) 320 { 321 addElementToRegistry(hashcode,element); 322 return(this); 323 } 324 325 330 public iframe addElement(String hashcode,String element) 331 { 332 addElementToRegistry(hashcode,element); 333 return(this); 334 } 335 336 340 public iframe addElement(Element element) 341 { 342 addElementToRegistry(element); 343 return(this); 344 } 345 346 350 public iframe addElement(String element) 351 { 352 addElementToRegistry(element); 353 return(this); 354 } 355 359 public iframe removeElement(String hashcode) 360 { 361 removeElementFromRegistry(hashcode); 362 return(this); 363 } 364 } 365 | Popular Tags |