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