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