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