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