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-track-element"><track></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="track") 030@FluentSetters 031public class Track extends HtmlElementVoid { 032 033 /** 034 * Creates an empty {@link Track} element. 035 */ 036 public Track() {} 037 038 /** 039 * Creates a {@link Track} element with the specified {@link Track#src(Object)} and {@link Track#kind(String)} 040 * attributes. 041 * 042 * @param src The {@link Track#src(Object)} attribute. 043 * @param kind The {@link Track#kind(String)} attribute. 044 */ 045 public Track(Object src, String kind) { 046 src(src).kind(kind); 047 } 048 049 /** 050 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-default">default</a> 051 * attribute. 052 * 053 * <p> 054 * Enable the track if no other text track is more suitable. 055 * 056 * @param _default The new value for this attribute. 057 * @return This object. 058 */ 059 public final Track _default(String _default) { 060 attr("default", _default); 061 return this; 062 } 063 064 /** 065 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-kind">kind</a> attribute. 066 * 067 * <p> 068 * The type of text track. 069 * 070 * @param kind The new value for this attribute. 071 * @return This object. 072 */ 073 public final Track kind(String kind) { 074 attr("kind", kind); 075 return this; 076 } 077 078 /** 079 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-label">label</a> attribute. 080 * 081 * <p> 082 * User-visible label. 083 * 084 * @param label The new value for this attribute. 085 * @return This object. 086 */ 087 public final Track label(String label) { 088 attr("label", label); 089 return this; 090 } 091 092 /** 093 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-src">src</a> attribute. 094 * 095 * <p> 096 * Address of the resource. 097 * 098 * <p> 099 * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. 100 * Strings must be valid URIs. 101 * 102 * <p> 103 * URIs defined by {@link UriResolver} can be used for values. 104 * 105 * @param src 106 * The new value for this attribute. 107 * Typically a {@link URL} or {@link String}. 108 * @return This object. 109 */ 110 public final Track src(Object src) { 111 attrUri("src", src); 112 return this; 113 } 114 115 /** 116 * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-srclang">srclang</a> 117 * attribute. 118 * 119 * <p> 120 * Language of the text track. 121 * 122 * @param srclang The new value for this attribute. 123 * @return This object. 124 */ 125 public final Track srclang(String srclang) { 126 attr("srclang", srclang); 127 return this; 128 } 129 130 131 //----------------------------------------------------------------------------------------------------------------- 132 // Overridden methods 133 //----------------------------------------------------------------------------------------------------------------- 134 135 // <FluentSetters> 136 137 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 138 public Track _class(String _class) { 139 super._class(_class); 140 return this; 141 } 142 143 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 144 public Track accesskey(String accesskey) { 145 super.accesskey(accesskey); 146 return this; 147 } 148 149 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 150 public Track contenteditable(Object contenteditable) { 151 super.contenteditable(contenteditable); 152 return this; 153 } 154 155 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 156 public Track dir(String dir) { 157 super.dir(dir); 158 return this; 159 } 160 161 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 162 public Track hidden(Object hidden) { 163 super.hidden(hidden); 164 return this; 165 } 166 167 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 168 public Track id(String id) { 169 super.id(id); 170 return this; 171 } 172 173 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 174 public Track lang(String lang) { 175 super.lang(lang); 176 return this; 177 } 178 179 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 180 public Track onabort(String onabort) { 181 super.onabort(onabort); 182 return this; 183 } 184 185 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 186 public Track onblur(String onblur) { 187 super.onblur(onblur); 188 return this; 189 } 190 191 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 192 public Track oncancel(String oncancel) { 193 super.oncancel(oncancel); 194 return this; 195 } 196 197 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 198 public Track oncanplay(String oncanplay) { 199 super.oncanplay(oncanplay); 200 return this; 201 } 202 203 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 204 public Track oncanplaythrough(String oncanplaythrough) { 205 super.oncanplaythrough(oncanplaythrough); 206 return this; 207 } 208 209 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 210 public Track onchange(String onchange) { 211 super.onchange(onchange); 212 return this; 213 } 214 215 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 216 public Track onclick(String onclick) { 217 super.onclick(onclick); 218 return this; 219 } 220 221 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 222 public Track oncuechange(String oncuechange) { 223 super.oncuechange(oncuechange); 224 return this; 225 } 226 227 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 228 public Track ondblclick(String ondblclick) { 229 super.ondblclick(ondblclick); 230 return this; 231 } 232 233 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 234 public Track ondurationchange(String ondurationchange) { 235 super.ondurationchange(ondurationchange); 236 return this; 237 } 238 239 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 240 public Track onemptied(String onemptied) { 241 super.onemptied(onemptied); 242 return this; 243 } 244 245 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 246 public Track onended(String onended) { 247 super.onended(onended); 248 return this; 249 } 250 251 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 252 public Track onerror(String onerror) { 253 super.onerror(onerror); 254 return this; 255 } 256 257 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 258 public Track onfocus(String onfocus) { 259 super.onfocus(onfocus); 260 return this; 261 } 262 263 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 264 public Track oninput(String oninput) { 265 super.oninput(oninput); 266 return this; 267 } 268 269 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 270 public Track oninvalid(String oninvalid) { 271 super.oninvalid(oninvalid); 272 return this; 273 } 274 275 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 276 public Track onkeydown(String onkeydown) { 277 super.onkeydown(onkeydown); 278 return this; 279 } 280 281 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 282 public Track onkeypress(String onkeypress) { 283 super.onkeypress(onkeypress); 284 return this; 285 } 286 287 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 288 public Track onkeyup(String onkeyup) { 289 super.onkeyup(onkeyup); 290 return this; 291 } 292 293 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 294 public Track onload(String onload) { 295 super.onload(onload); 296 return this; 297 } 298 299 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 300 public Track onloadeddata(String onloadeddata) { 301 super.onloadeddata(onloadeddata); 302 return this; 303 } 304 305 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 306 public Track onloadedmetadata(String onloadedmetadata) { 307 super.onloadedmetadata(onloadedmetadata); 308 return this; 309 } 310 311 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 312 public Track onloadstart(String onloadstart) { 313 super.onloadstart(onloadstart); 314 return this; 315 } 316 317 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 318 public Track onmousedown(String onmousedown) { 319 super.onmousedown(onmousedown); 320 return this; 321 } 322 323 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 324 public Track onmouseenter(String onmouseenter) { 325 super.onmouseenter(onmouseenter); 326 return this; 327 } 328 329 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 330 public Track onmouseleave(String onmouseleave) { 331 super.onmouseleave(onmouseleave); 332 return this; 333 } 334 335 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 336 public Track onmousemove(String onmousemove) { 337 super.onmousemove(onmousemove); 338 return this; 339 } 340 341 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 342 public Track onmouseout(String onmouseout) { 343 super.onmouseout(onmouseout); 344 return this; 345 } 346 347 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 348 public Track onmouseover(String onmouseover) { 349 super.onmouseover(onmouseover); 350 return this; 351 } 352 353 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 354 public Track onmouseup(String onmouseup) { 355 super.onmouseup(onmouseup); 356 return this; 357 } 358 359 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 360 public Track onmousewheel(String onmousewheel) { 361 super.onmousewheel(onmousewheel); 362 return this; 363 } 364 365 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 366 public Track onpause(String onpause) { 367 super.onpause(onpause); 368 return this; 369 } 370 371 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 372 public Track onplay(String onplay) { 373 super.onplay(onplay); 374 return this; 375 } 376 377 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 378 public Track onplaying(String onplaying) { 379 super.onplaying(onplaying); 380 return this; 381 } 382 383 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 384 public Track onprogress(String onprogress) { 385 super.onprogress(onprogress); 386 return this; 387 } 388 389 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 390 public Track onratechange(String onratechange) { 391 super.onratechange(onratechange); 392 return this; 393 } 394 395 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 396 public Track onreset(String onreset) { 397 super.onreset(onreset); 398 return this; 399 } 400 401 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 402 public Track onresize(String onresize) { 403 super.onresize(onresize); 404 return this; 405 } 406 407 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 408 public Track onscroll(String onscroll) { 409 super.onscroll(onscroll); 410 return this; 411 } 412 413 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 414 public Track onseeked(String onseeked) { 415 super.onseeked(onseeked); 416 return this; 417 } 418 419 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 420 public Track onseeking(String onseeking) { 421 super.onseeking(onseeking); 422 return this; 423 } 424 425 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 426 public Track onselect(String onselect) { 427 super.onselect(onselect); 428 return this; 429 } 430 431 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 432 public Track onshow(String onshow) { 433 super.onshow(onshow); 434 return this; 435 } 436 437 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 438 public Track onstalled(String onstalled) { 439 super.onstalled(onstalled); 440 return this; 441 } 442 443 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 444 public Track onsubmit(String onsubmit) { 445 super.onsubmit(onsubmit); 446 return this; 447 } 448 449 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 450 public Track onsuspend(String onsuspend) { 451 super.onsuspend(onsuspend); 452 return this; 453 } 454 455 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 456 public Track ontimeupdate(String ontimeupdate) { 457 super.ontimeupdate(ontimeupdate); 458 return this; 459 } 460 461 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 462 public Track ontoggle(String ontoggle) { 463 super.ontoggle(ontoggle); 464 return this; 465 } 466 467 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 468 public Track onvolumechange(String onvolumechange) { 469 super.onvolumechange(onvolumechange); 470 return this; 471 } 472 473 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 474 public Track onwaiting(String onwaiting) { 475 super.onwaiting(onwaiting); 476 return this; 477 } 478 479 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 480 public Track spellcheck(Object spellcheck) { 481 super.spellcheck(spellcheck); 482 return this; 483 } 484 485 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 486 public Track style(String style) { 487 super.style(style); 488 return this; 489 } 490 491 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 492 public Track tabindex(Object tabindex) { 493 super.tabindex(tabindex); 494 return this; 495 } 496 497 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 498 public Track title(String title) { 499 super.title(title); 500 return this; 501 } 502 503 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 504 public Track translate(Object translate) { 505 super.translate(translate); 506 return this; 507 } 508 509 // </FluentSetters> 510}