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