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