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