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