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.*; 016 017/** 018 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/sections.html#the-body-element"><body></a> 019 * element. 020 * 021 * <h5 class='section'>See Also:</h5> 022 * <ul class='doctree'> 023 * <li class='link'><a class='doclink' href='../../../../../overview-summary.html#juneau-dto.HTML5'>Overview > juneau-dto > HTML5</a> 024 * </ul> 025 */ 026@Bean(typeName="body") 027public class Body extends HtmlElementMixed { 028 029 /** 030 * <a class="doclink" href="https://www.w3.org/TR/html5/webappapis.html#handler-window-onafterprint">onafterprint</a> 031 * attribute. 032 * 033 * @param onafterprint The new value for this attribute. 034 * @return This object (for method chaining). 035 */ 036 public final Body onafterprint(String onafterprint) { 037 attr("onafterprint", onafterprint); 038 return this; 039 } 040 041 /** 042 * <a class="doclink" href="https://www.w3.org/TR/html5/webappapis.html#handler-window-onbeforeunload">onbeforeunload</a> 043 * attribute. 044 * 045 * @param onbeforeunload The new value for this attribute. 046 * @return This object (for method chaining). 047 */ 048 public final Body onbeforeunload(String onbeforeunload) { 049 attr("onbeforeunload", onbeforeunload); 050 return this; 051 } 052 053 /** 054 * <a class="doclink" href="https://www.w3.org/TR/html5/webappapis.html#handler-window-onmessage">onmessage</a> 055 * attribute. 056 * 057 * @param onmessage The new value for this attribute. 058 * @return This object (for method chaining). 059 */ 060 public final Body onmessage(String onmessage) { 061 attr("onmessage", onmessage); 062 return this; 063 } 064 065 /** 066 * <a class="doclink" href="https://www.w3.org/TR/html5/webappapis.html#handler-window-ononline">ononline</a> 067 * attribute. 068 * 069 * @param ononline The new value for this attribute. 070 * @return This object (for method chaining). 071 */ 072 public final Body ononline(String ononline) { 073 attr("ononline", ononline); 074 return this; 075 } 076 077 /** 078 * <a class="doclink" href="https://www.w3.org/TR/html5/webappapis.html#handler-window-onpageshow">onpageshow</a> 079 * attribute. 080 * 081 * @param onpageshow The new value for this attribute. 082 * @return This object (for method chaining). 083 */ 084 public final Body onpageshow(String onpageshow) { 085 attr("onpageshow", onpageshow); 086 return this; 087 } 088 089 /** 090 * <a class="doclink" href="https://www.w3.org/TR/html5/webappapis.html#handler-window-onstorage">onstorage</a> 091 * attribute. 092 * 093 * @param onstorage The new value for this attribute. 094 * @return This object (for method chaining). 095 */ 096 public final Body onstorage(String onstorage) { 097 attr("onstorage", onstorage); 098 return this; 099 } 100 101 102 //-------------------------------------------------------------------------------- 103 // Overridden methods 104 //-------------------------------------------------------------------------------- 105 106 @Override /* HtmlElement */ 107 public final Body _class(String _class) { 108 super._class(_class); 109 return this; 110 } 111 112 @Override /* HtmlElement */ 113 public final Body id(String id) { 114 super.id(id); 115 return this; 116 } 117 118 @Override /* HtmlElement */ 119 public final Body style(String style) { 120 super.style(style); 121 return this; 122 } 123 124 @Override /* HtmlElementMixed */ 125 public Body children(Object...children) { 126 super.children(children); 127 return this; 128 } 129 130 @Override /* HtmlElementMixed */ 131 public Body child(Object child) { 132 super.child(child); 133 return this; 134 } 135}