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