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