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