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