001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.dto.html5; 014 015import java.net.*; 016 017import org.apache.juneau.*; 018import org.apache.juneau.annotation.*; 019import org.apache.juneau.internal.*; 020 021/** 022 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#the-iframe-element"><iframe></a> 023 * element. 024 * 025 * <h5 class='section'>See Also:</h5><ul> 026 * <li class='link'><a class="doclink" href="../../../../../index.html#jd.Html5">Overview > juneau-dto > HTML5</a> 027 * </ul> 028 */ 029@Bean(typeName="iframe") 030@FluentSetters 031public class Iframe extends HtmlElementMixed { 032 033 /** 034 * Creates an empty {@link Iframe} element. 035 */ 036 public Iframe() {} 037 038 /** 039 * Creates an {@link Iframe} element with the specified child nodes. 040 * 041 * @param children The child nodes. 042 */ 043 public Iframe(Object...children) { 044 children(children); 045 } 046 047 /** 048 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-height">height</a> 049 * attribute. 050 * 051 * <p> 052 * Vertical dimension. 053 * 054 * @param height 055 * The new value for this attribute. 056 * Typically a {@link Number} or {@link String}. 057 * @return This object. 058 */ 059 public final Iframe height(Object height) { 060 attr("height", height); 061 return this; 062 } 063 064 /** 065 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-name">name</a> attribute. 066 * 067 * <p> 068 * Name of nested browsing context. 069 * 070 * @param name The new value for this attribute. 071 * @return This object. 072 */ 073 public final Iframe name(String name) { 074 attr("name", name); 075 return this; 076 } 077 078 /** 079 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-sandbox">sandbox</a> 080 * attribute. 081 * 082 * <p> 083 * Security rules for nested content. 084 * 085 * @param sandbox The new value for this attribute. 086 * @return This object. 087 */ 088 public final Iframe sandbox(String sandbox) { 089 attr("sandbox", sandbox); 090 return this; 091 } 092 093 /** 094 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-src">src</a> attribute. 095 * 096 * <p> 097 * Address of the resource. 098 * 099 * <p> 100 * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. 101 * Strings must be valid URIs. 102 * 103 * <p> 104 * URIs defined by {@link UriResolver} can be used for values. 105 * 106 * @param src 107 * The new value for this attribute. 108 * Typically a {@link URL} or {@link String}. 109 * @return This object. 110 */ 111 public final Iframe src(Object src) { 112 attrUri("src", src); 113 return this; 114 } 115 116 /** 117 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-iframe-srcdoc">srcdoc</a> 118 * attribute. 119 * 120 * <p> 121 * A document to render in the iframe. 122 * 123 * @param srcdoc The new value for this attribute. 124 * @return This object. 125 */ 126 public final Iframe srcdoc(String srcdoc) { 127 attr("srcdoc", srcdoc); 128 return this; 129 } 130 131 /** 132 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-width">width</a> attribute. 133 * 134 * <p> 135 * Horizontal dimension. 136 * 137 * @param width 138 * The new value for this attribute. 139 * Typically a {@link Number} or {@link String}. 140 * @return This object. 141 */ 142 public final Iframe width(Object width) { 143 attr("width", width); 144 return this; 145 } 146 147 148 //----------------------------------------------------------------------------------------------------------------- 149 // Overridden methods 150 //----------------------------------------------------------------------------------------------------------------- 151 152 // <FluentSetters> 153 154 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 155 public Iframe _class(String _class) { 156 super._class(_class); 157 return this; 158 } 159 160 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 161 public Iframe accesskey(String accesskey) { 162 super.accesskey(accesskey); 163 return this; 164 } 165 166 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 167 public Iframe contenteditable(Object contenteditable) { 168 super.contenteditable(contenteditable); 169 return this; 170 } 171 172 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 173 public Iframe dir(String dir) { 174 super.dir(dir); 175 return this; 176 } 177 178 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 179 public Iframe hidden(Object hidden) { 180 super.hidden(hidden); 181 return this; 182 } 183 184 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 185 public Iframe id(String id) { 186 super.id(id); 187 return this; 188 } 189 190 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 191 public Iframe lang(String lang) { 192 super.lang(lang); 193 return this; 194 } 195 196 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 197 public Iframe onabort(String onabort) { 198 super.onabort(onabort); 199 return this; 200 } 201 202 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 203 public Iframe onblur(String onblur) { 204 super.onblur(onblur); 205 return this; 206 } 207 208 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 209 public Iframe oncancel(String oncancel) { 210 super.oncancel(oncancel); 211 return this; 212 } 213 214 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 215 public Iframe oncanplay(String oncanplay) { 216 super.oncanplay(oncanplay); 217 return this; 218 } 219 220 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 221 public Iframe oncanplaythrough(String oncanplaythrough) { 222 super.oncanplaythrough(oncanplaythrough); 223 return this; 224 } 225 226 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 227 public Iframe onchange(String onchange) { 228 super.onchange(onchange); 229 return this; 230 } 231 232 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 233 public Iframe onclick(String onclick) { 234 super.onclick(onclick); 235 return this; 236 } 237 238 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 239 public Iframe oncuechange(String oncuechange) { 240 super.oncuechange(oncuechange); 241 return this; 242 } 243 244 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 245 public Iframe ondblclick(String ondblclick) { 246 super.ondblclick(ondblclick); 247 return this; 248 } 249 250 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 251 public Iframe ondurationchange(String ondurationchange) { 252 super.ondurationchange(ondurationchange); 253 return this; 254 } 255 256 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 257 public Iframe onemptied(String onemptied) { 258 super.onemptied(onemptied); 259 return this; 260 } 261 262 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 263 public Iframe onended(String onended) { 264 super.onended(onended); 265 return this; 266 } 267 268 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 269 public Iframe onerror(String onerror) { 270 super.onerror(onerror); 271 return this; 272 } 273 274 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 275 public Iframe onfocus(String onfocus) { 276 super.onfocus(onfocus); 277 return this; 278 } 279 280 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 281 public Iframe oninput(String oninput) { 282 super.oninput(oninput); 283 return this; 284 } 285 286 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 287 public Iframe oninvalid(String oninvalid) { 288 super.oninvalid(oninvalid); 289 return this; 290 } 291 292 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 293 public Iframe onkeydown(String onkeydown) { 294 super.onkeydown(onkeydown); 295 return this; 296 } 297 298 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 299 public Iframe onkeypress(String onkeypress) { 300 super.onkeypress(onkeypress); 301 return this; 302 } 303 304 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 305 public Iframe onkeyup(String onkeyup) { 306 super.onkeyup(onkeyup); 307 return this; 308 } 309 310 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 311 public Iframe onload(String onload) { 312 super.onload(onload); 313 return this; 314 } 315 316 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 317 public Iframe onloadeddata(String onloadeddata) { 318 super.onloadeddata(onloadeddata); 319 return this; 320 } 321 322 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 323 public Iframe onloadedmetadata(String onloadedmetadata) { 324 super.onloadedmetadata(onloadedmetadata); 325 return this; 326 } 327 328 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 329 public Iframe onloadstart(String onloadstart) { 330 super.onloadstart(onloadstart); 331 return this; 332 } 333 334 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 335 public Iframe onmousedown(String onmousedown) { 336 super.onmousedown(onmousedown); 337 return this; 338 } 339 340 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 341 public Iframe onmouseenter(String onmouseenter) { 342 super.onmouseenter(onmouseenter); 343 return this; 344 } 345 346 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 347 public Iframe onmouseleave(String onmouseleave) { 348 super.onmouseleave(onmouseleave); 349 return this; 350 } 351 352 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 353 public Iframe onmousemove(String onmousemove) { 354 super.onmousemove(onmousemove); 355 return this; 356 } 357 358 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 359 public Iframe onmouseout(String onmouseout) { 360 super.onmouseout(onmouseout); 361 return this; 362 } 363 364 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 365 public Iframe onmouseover(String onmouseover) { 366 super.onmouseover(onmouseover); 367 return this; 368 } 369 370 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 371 public Iframe onmouseup(String onmouseup) { 372 super.onmouseup(onmouseup); 373 return this; 374 } 375 376 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 377 public Iframe onmousewheel(String onmousewheel) { 378 super.onmousewheel(onmousewheel); 379 return this; 380 } 381 382 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 383 public Iframe onpause(String onpause) { 384 super.onpause(onpause); 385 return this; 386 } 387 388 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 389 public Iframe onplay(String onplay) { 390 super.onplay(onplay); 391 return this; 392 } 393 394 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 395 public Iframe onplaying(String onplaying) { 396 super.onplaying(onplaying); 397 return this; 398 } 399 400 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 401 public Iframe onprogress(String onprogress) { 402 super.onprogress(onprogress); 403 return this; 404 } 405 406 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 407 public Iframe onratechange(String onratechange) { 408 super.onratechange(onratechange); 409 return this; 410 } 411 412 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 413 public Iframe onreset(String onreset) { 414 super.onreset(onreset); 415 return this; 416 } 417 418 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 419 public Iframe onresize(String onresize) { 420 super.onresize(onresize); 421 return this; 422 } 423 424 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 425 public Iframe onscroll(String onscroll) { 426 super.onscroll(onscroll); 427 return this; 428 } 429 430 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 431 public Iframe onseeked(String onseeked) { 432 super.onseeked(onseeked); 433 return this; 434 } 435 436 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 437 public Iframe onseeking(String onseeking) { 438 super.onseeking(onseeking); 439 return this; 440 } 441 442 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 443 public Iframe onselect(String onselect) { 444 super.onselect(onselect); 445 return this; 446 } 447 448 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 449 public Iframe onshow(String onshow) { 450 super.onshow(onshow); 451 return this; 452 } 453 454 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 455 public Iframe onstalled(String onstalled) { 456 super.onstalled(onstalled); 457 return this; 458 } 459 460 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 461 public Iframe onsubmit(String onsubmit) { 462 super.onsubmit(onsubmit); 463 return this; 464 } 465 466 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 467 public Iframe onsuspend(String onsuspend) { 468 super.onsuspend(onsuspend); 469 return this; 470 } 471 472 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 473 public Iframe ontimeupdate(String ontimeupdate) { 474 super.ontimeupdate(ontimeupdate); 475 return this; 476 } 477 478 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 479 public Iframe ontoggle(String ontoggle) { 480 super.ontoggle(ontoggle); 481 return this; 482 } 483 484 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 485 public Iframe onvolumechange(String onvolumechange) { 486 super.onvolumechange(onvolumechange); 487 return this; 488 } 489 490 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 491 public Iframe onwaiting(String onwaiting) { 492 super.onwaiting(onwaiting); 493 return this; 494 } 495 496 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 497 public Iframe spellcheck(Object spellcheck) { 498 super.spellcheck(spellcheck); 499 return this; 500 } 501 502 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 503 public Iframe style(String style) { 504 super.style(style); 505 return this; 506 } 507 508 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 509 public Iframe tabindex(Object tabindex) { 510 super.tabindex(tabindex); 511 return this; 512 } 513 514 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 515 public Iframe title(String title) { 516 super.title(title); 517 return this; 518 } 519 520 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 521 public Iframe translate(Object translate) { 522 super.translate(translate); 523 return this; 524 } 525 526 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementMixed */ 527 public Iframe child(Object child) { 528 super.child(child); 529 return this; 530 } 531 532 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementMixed */ 533 public Iframe children(Object...children) { 534 super.children(children); 535 return this; 536 } 537 538 // </FluentSetters> 539}