View Javadoc

1   //CHECKSTYLE:OFF
2   /*
3    * Copyright 2013 smartics, Kronseder & Reiner GmbH
4    *
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package de.smartics.html5.jatl;
18  
19  import java.io.IOException;
20  import java.io.Writer;
21  
22  import org.apache.commons.lang3.StringUtils;
23  
24  import com.googlecode.jatl.Indenter;
25  
26  import de.smartics.resteasy.hypermedia.renderer.LinkDescriptor;
27  
28  /**
29   * Wrapper to make the writer accessible.
30   */
31  public final class Html extends com.googlecode.jatl.Html
32  {
33    // ********************************* Fields *********************************
34  
35    // --- constants ------------------------------------------------------------
36  
37    // --- members --------------------------------------------------------------
38  
39    /**
40     * The writer to write to.
41     */
42    private final Writer writer;
43  
44    // ****************************** Initializer *******************************
45  
46    // ****************************** Constructors ******************************
47  
48    /**
49     * Default constructor.
50     *
51     * @param writer the writer to write to.
52     */
53    public Html(final Writer writer)
54    {
55      super(writer);
56      this.writer = writer;
57    }
58  
59    // ****************************** Inner Classes *****************************
60  
61    // ********************************* Methods ********************************
62  
63    // --- init -----------------------------------------------------------------
64  
65    // --- get&set --------------------------------------------------------------
66  
67    /**
68     * Returns the writer to write to.
69     *
70     * @return the writer to write to.
71     */
72    public Writer getWriter()
73    {
74      return writer;
75    }
76  
77    // --- business -------------------------------------------------------------
78  
79    /**
80     * Writes the declaration to the stream. Call after setting HTTP headers.
81     */
82    public void declaration()
83    {
84      try
85      {
86        writer.write("<!DOCTYPE html>\n");
87        writer.flush();
88      }
89      catch (final IOException e)
90      {
91        // ignore
92      }
93    }
94  
95    /**
96     * Renders an icon.
97     *
98     * @param cssClass the class to render the icon.
99     * @return a reference to this.
100    */
101   public Html icon(final String cssClass)
102   {
103     i().classAttr(cssClass).text("").end();
104     return this;
105   }
106 
107   /**
108    * Renders a link with its label.
109    *
110    * @param link the link to render.
111    */
112   public Html link(final LinkDescriptor link)
113   {
114     final String label = link.getLabel();
115     return link(link, label);
116   }
117 
118   /**
119    * Renders a link with its short label.
120    *
121    * @param link the link to render.
122    */
123   public Html shortLink(final LinkDescriptor link)
124   {
125     final String label = link.getShortLabel();
126     return link(link, label);
127   }
128 
129   private Html link(final LinkDescriptor link, final String label)
130   {
131     final String uri = link.getHref();
132     a().href(uri);
133 
134     final String id = link.getId();
135     if (StringUtils.isNotBlank(id))
136     {
137       id(id);
138     }
139     final String rel = link.getRel();
140     if (StringUtils.isNotBlank(rel))
141     {
142       rel(rel);
143     }
144     final String title = link.getTitle();
145     if (StringUtils.isNotBlank(title))
146     {
147       title(title);
148     }
149     final String css = link.getCssClass();
150     if (StringUtils.isNotBlank(css))
151     {
152       classAttr(css);
153     }
154     final String media = link.getMedia();
155     if (StringUtils.isNotBlank(media))
156     {
157       media(media);
158     }
159     final String contextMenu = link.getContextMenu();
160     if (StringUtils.isNotBlank(contextMenu))
161     {
162       attr("contextmenu", contextMenu);
163     }
164     final String dir = link.getDir();
165     if (StringUtils.isNotBlank(dir))
166     {
167       dir(dir);
168     }
169     final String accessKey = link.getAccessKey();
170     if (StringUtils.isNotBlank(accessKey))
171     {
172       accesskey(accessKey);
173     }
174     final String hrefLang = link.getHrefLang();
175     if (StringUtils.isNotBlank(hrefLang))
176     {
177       hreflang(hrefLang);
178     }
179     final String type = link.getType();
180     if (StringUtils.isNotBlank(type))
181     {
182       type(type);
183     }
184     final Integer tabIndex = link.getTabIndex();
185     if (tabIndex != null)
186     {
187       tabindex(String.valueOf(tabIndex));
188     }
189     final String length = link.getLength();
190     if (StringUtils.isNotBlank(length))
191     {
192       attr("length", length);
193     }
194     final String target = link.getTarget();
195     if (StringUtils.isNotBlank(target))
196     {
197       target(target);
198     }
199     final Boolean hidden = link.isHidden();
200     if (hidden != null)
201     {
202       attr("hidden", hidden ? "hidden" : "");
203     }
204 
205     text(label);
206     end();
207 
208     return this;
209   }
210 
211   @Override
212   public Html checkbox()
213   {
214     super.checkbox();
215     return this;
216   }
217 
218   @Override
219   public Html checkbox(final boolean checked)
220   {
221     super.checkbox(checked);
222     return this;
223   }
224 
225   @Override
226   public Html option(final String name, final String value,
227       final boolean selected)
228   {
229     super.option(name, value, selected);
230     return this;
231   }
232 
233   @Override
234   public Html a()
235   {
236     super.a();
237     return this;
238   }
239 
240   @Override
241   public Html abbr()
242   {
243     super.abbr();
244     return this;
245   }
246 
247   @Override
248   public Html acronym()
249   {
250     super.acronym();
251     return this;
252   }
253 
254   @Override
255   public Html address()
256   {
257     super.address();
258     return this;
259   }
260 
261   @Override
262   public Html applet()
263   {
264     super.applet();
265     return this;
266   }
267 
268   @Override
269   public Html area()
270   {
271     super.area();
272     return this;
273   }
274 
275   @Override
276   public Html b()
277   {
278     super.b();
279     return this;
280   }
281 
282   @Override
283   public Html base()
284   {
285     super.base();
286     return this;
287   }
288 
289   @Override
290   public Html basefont()
291   {
292     super.basefont();
293     return this;
294   }
295 
296   @Override
297   public Html bdo()
298   {
299     super.bdo();
300     return this;
301   }
302 
303   @Override
304   public Html big()
305   {
306     super.big();
307     return this;
308   }
309 
310   @Override
311   public Html blockquote()
312   {
313     super.blockquote();
314     return this;
315   }
316 
317   @Override
318   public Html body()
319   {
320     super.body();
321     return this;
322   }
323 
324   @Override
325   public Html br()
326   {
327     super.br();
328     return this;
329   }
330 
331   @Override
332   public Html button()
333   {
334     super.button();
335     return this;
336   }
337 
338   @Override
339   public Html caption()
340   {
341     super.caption();
342     return this;
343   }
344 
345   @Override
346   public Html center()
347   {
348     super.center();
349     return this;
350   }
351 
352   @Override
353   public Html cite()
354   {
355     super.cite();
356     return this;
357   }
358 
359   @Override
360   public Html code()
361   {
362     super.code();
363     return this;
364   }
365 
366   @Override
367   public Html col()
368   {
369     super.col();
370     return this;
371   }
372 
373   @Override
374   public Html colgroup()
375   {
376     super.colgroup();
377     return this;
378   }
379 
380   @Override
381   public Html dd()
382   {
383     super.dd();
384     return this;
385   }
386 
387   @Override
388   public Html del()
389   {
390     super.del();
391     return this;
392   }
393 
394   @Override
395   public Html dfn()
396   {
397     super.dfn();
398     return this;
399   }
400 
401   @Override
402   public Html dir()
403   {
404     super.dir();
405     return this;
406   }
407 
408   @Override
409   public Html div()
410   {
411     super.div();
412     return this;
413   }
414 
415   @Override
416   public Html dl()
417   {
418     super.dl();
419     return this;
420   }
421 
422   @Override
423   public Html dt()
424   {
425     super.dt();
426     return this;
427   }
428 
429   @Override
430   public Html em()
431   {
432     super.em();
433     return this;
434   }
435 
436   @Override
437   public Html fieldset()
438   {
439     super.fieldset();
440     return this;
441   }
442 
443   @Override
444   public Html font()
445   {
446     super.font();
447     return this;
448   }
449 
450   @Override
451   public Html form()
452   {
453     super.form();
454     return this;
455   }
456 
457   @Override
458   public Html h1()
459   {
460     super.h1();
461     return this;
462   }
463 
464   @Override
465   public Html h2()
466   {
467     super.h2();
468     return this;
469   }
470 
471   @Override
472   public Html h3()
473   {
474     super.h3();
475     return this;
476   }
477 
478   @Override
479   public Html h4()
480   {
481     super.h4();
482     return this;
483   }
484 
485   @Override
486   public Html h5()
487   {
488     super.h5();
489     return this;
490   }
491 
492   @Override
493   public Html h6()
494   {
495     super.h6();
496     return this;
497   }
498 
499   @Override
500   public Html head()
501   {
502     super.head();
503     return this;
504   }
505 
506   @Override
507   public Html hr()
508   {
509     super.hr();
510     return this;
511   }
512 
513   @Override
514   public Html html()
515   {
516     super.html();
517     return this;
518   }
519 
520   @Override
521   public Html i()
522   {
523     super.i();
524     return this;
525   }
526 
527   @Override
528   public Html iframe()
529   {
530     super.iframe();
531     return this;
532   }
533 
534   @Override
535   public Html img()
536   {
537     super.img();
538     return this;
539   }
540 
541   @Override
542   public Html input()
543   {
544     super.input();
545     return this;
546   }
547 
548   @Override
549   public Html ins()
550   {
551     super.ins();
552     return this;
553   }
554 
555   @Override
556   public Html isindex()
557   {
558     super.isindex();
559     return this;
560   }
561 
562   @Override
563   public Html kbd()
564   {
565     super.kbd();
566     return this;
567   }
568 
569   @Override
570   public Html label()
571   {
572     super.label();
573     return this;
574   }
575 
576   @Override
577   public Html legend()
578   {
579     super.legend();
580     return this;
581   }
582 
583   @Override
584   public Html li()
585   {
586     super.li();
587     return this;
588   }
589 
590   @Override
591   public Html link()
592   {
593     super.link();
594     return this;
595   }
596 
597   @Override
598   public Html map()
599   {
600     super.map();
601     return this;
602   }
603 
604   @Override
605   public Html menu()
606   {
607     super.menu();
608     return this;
609   }
610 
611   @Override
612   public Html meta()
613   {
614     super.meta();
615     return this;
616   }
617 
618   @Override
619   public Html noframes()
620   {
621     super.noframes();
622     return this;
623   }
624 
625   @Override
626   public Html noscript()
627   {
628     super.noscript();
629     return this;
630   }
631 
632   @Override
633   public Html object()
634   {
635     super.object();
636     return this;
637   }
638 
639   @Override
640   public Html ol()
641   {
642     super.ol();
643     return this;
644   }
645 
646   @Override
647   public Html optgroup()
648   {
649     super.optgroup();
650     return this;
651   }
652 
653   @Override
654   public Html option()
655   {
656     super.option();
657     return this;
658   }
659 
660   @Override
661   public Html p()
662   {
663     super.p();
664     return this;
665   }
666 
667   @Override
668   public Html param()
669   {
670     super.param();
671     return this;
672   }
673 
674   @Override
675   public Html pre()
676   {
677     super.pre();
678     return this;
679   }
680 
681   @Override
682   public Html q()
683   {
684     super.q();
685     return this;
686   }
687 
688   @Override
689   public Html s()
690   {
691     super.s();
692     return this;
693   }
694 
695   @Override
696   public Html samp()
697   {
698     super.samp();
699     return this;
700   }
701 
702   @Override
703   public Html script()
704   {
705     super.script();
706     return this;
707   }
708 
709   @Override
710   public Html select()
711   {
712     super.select();
713     return this;
714   }
715 
716   @Override
717   public Html small()
718   {
719     super.small();
720     return this;
721   }
722 
723   @Override
724   public Html span()
725   {
726     super.span();
727     return this;
728   }
729 
730   @Override
731   public Html strike()
732   {
733     super.strike();
734     return this;
735   }
736 
737   @Override
738   public Html strong()
739   {
740     super.strong();
741     return this;
742   }
743 
744   @Override
745   public Html style()
746   {
747     super.style();
748     return this;
749   }
750 
751   @Override
752   public Html sub()
753   {
754     super.sub();
755     return this;
756   }
757 
758   @Override
759   public Html sup()
760   {
761     super.sup();
762     return this;
763   }
764 
765   @Override
766   public Html table()
767   {
768     super.table();
769     return this;
770   }
771 
772   @Override
773   public Html tbody()
774   {
775     super.tbody();
776     return this;
777   }
778 
779   @Override
780   public Html td()
781   {
782     super.td();
783     return this;
784   }
785 
786   @Override
787   public Html textarea()
788   {
789     super.textarea();
790     return this;
791   }
792 
793   @Override
794   public Html tfoot()
795   {
796     super.tfoot();
797     return this;
798   }
799 
800   @Override
801   public Html th()
802   {
803     super.th();
804     return this;
805   }
806 
807   @Override
808   public Html thead()
809   {
810     super.thead();
811     return this;
812   }
813 
814   @Override
815   public Html title()
816   {
817     super.title();
818     return this;
819   }
820 
821   @Override
822   public Html tr()
823   {
824     super.tr();
825     return this;
826   }
827 
828   @Override
829   public Html tt()
830   {
831     super.tt();
832     return this;
833   }
834 
835   @Override
836   public Html u()
837   {
838     super.u();
839     return this;
840   }
841 
842   @Override
843   public Html ul()
844   {
845     super.ul();
846     return this;
847   }
848 
849   @Override
850   public Html var()
851   {
852     super.var();
853     return this;
854   }
855 
856   @Override
857   public Html abbr(final String value)
858   {
859     super.abbr(value);
860     return this;
861   }
862 
863   @Override
864   public Html accept(final String value)
865   {
866     super.accept(value);
867     return this;
868   }
869 
870   @Override
871   public Html acceptCharset(final String value)
872   {
873     super.acceptCharset(value);
874     return this;
875   }
876 
877   @Override
878   public Html accesskey(final String value)
879   {
880     super.accesskey(value);
881     return this;
882   }
883 
884   @Override
885   public Html action(final String value)
886   {
887     super.action(value);
888     return this;
889   }
890 
891   @Override
892   public Html align(final String value)
893   {
894     super.align(value);
895     return this;
896   }
897 
898   @Override
899   public Html alink(final String value)
900   {
901     super.alink(value);
902     return this;
903   }
904 
905   @Override
906   public Html alt(final String value)
907   {
908     super.alt(value);
909     return this;
910   }
911 
912   @Override
913   public Html archive(final String value)
914   {
915     super.archive(value);
916     return this;
917   }
918 
919   @Override
920   public Html axis(final String value)
921   {
922     super.axis(value);
923     return this;
924   }
925 
926   @Override
927   public Html background(final String value)
928   {
929     super.background(value);
930     return this;
931   }
932 
933   @Override
934   public Html bgcolor(final String value)
935   {
936     super.bgcolor(value);
937     return this;
938   }
939 
940   @Override
941   public Html border(final String value)
942   {
943     super.border(value);
944     return this;
945   }
946 
947   @Override
948   public Html cellpadding(final String value)
949   {
950     super.cellpadding(value);
951     return this;
952   }
953 
954   @Override
955   public Html cellspacing(final String value)
956   {
957     super.cellspacing(value);
958     return this;
959   }
960 
961   @Override
962   public Html charAttr(final String value)
963   {
964     super.charAttr(value);
965     return this;
966   }
967 
968   @Override
969   public Html charoff(final String value)
970   {
971     super.charoff(value);
972     return this;
973   }
974 
975   @Override
976   public Html charset(final String value)
977   {
978     super.charset(value);
979     return this;
980   }
981 
982   @Override
983   public Html checked(final String value)
984   {
985     super.checked(value);
986     return this;
987   }
988 
989   @Override
990   public Html cite(final String value)
991   {
992     super.cite(value);
993     return this;
994   }
995 
996   @Override
997   public Html classAttr(final String value)
998   {
999     super.classAttr(value);
1000     return this;
1001   }
1002 
1003   @Override
1004   public Html classid(final String value)
1005   {
1006     super.classid(value);
1007     return this;
1008   }
1009 
1010   @Override
1011   public Html clear(final String value)
1012   {
1013     super.clear(value);
1014     return this;
1015   }
1016 
1017   @Override
1018   public Html code(final String value)
1019   {
1020     super.code(value);
1021     return this;
1022   }
1023 
1024   @Override
1025   public Html codebase(final String value)
1026   {
1027     super.codebase(value);
1028     return this;
1029   }
1030 
1031   @Override
1032   public Html codetype(final String value)
1033   {
1034     super.codetype(value);
1035     return this;
1036   }
1037 
1038   @Override
1039   public Html color(final String value)
1040   {
1041     super.color(value);
1042     return this;
1043   }
1044 
1045   @Override
1046   public Html cols(final String value)
1047   {
1048     super.cols(value);
1049     return this;
1050   }
1051 
1052   @Override
1053   public Html colspan(final String value)
1054   {
1055     super.colspan(value);
1056     return this;
1057   }
1058 
1059   @Override
1060   public Html compact(final String value)
1061   {
1062     super.compact(value);
1063     return this;
1064   }
1065 
1066   @Override
1067   public Html content(final String value)
1068   {
1069     super.content(value);
1070     return this;
1071   }
1072 
1073   @Override
1074   public Html coords(final String value)
1075   {
1076     super.coords(value);
1077     return this;
1078   }
1079 
1080   @Override
1081   public Html data(final String value)
1082   {
1083     super.data(value);
1084     return this;
1085   }
1086 
1087   @Override
1088   public Html datetime(final String value)
1089   {
1090     super.datetime(value);
1091     return this;
1092   }
1093 
1094   @Override
1095   public Html declare(final String value)
1096   {
1097     super.declare(value);
1098     return this;
1099   }
1100 
1101   @Override
1102   public Html defer(final String value)
1103   {
1104     super.defer(value);
1105     return this;
1106   }
1107 
1108   @Override
1109   public Html dir(final String value)
1110   {
1111     super.dir(value);
1112     return this;
1113   }
1114 
1115   @Override
1116   public Html disabled(final String value)
1117   {
1118     super.disabled(value);
1119     return this;
1120   }
1121 
1122   @Override
1123   public Html enctype(final String value)
1124   {
1125     super.enctype(value);
1126     return this;
1127   }
1128 
1129   @Override
1130   public Html face(final String value)
1131   {
1132     super.face(value);
1133     return this;
1134   }
1135 
1136   @Override
1137   public Html forAttr(final String value)
1138   {
1139     super.forAttr(value);
1140     return this;
1141   }
1142 
1143   @Override
1144   public Html frame(final String value)
1145   {
1146     super.frame(value);
1147     return this;
1148   }
1149 
1150   @Override
1151   public Html frameborder(final String value)
1152   {
1153     super.frameborder(value);
1154     return this;
1155   }
1156 
1157   @Override
1158   public Html headers(final String value)
1159   {
1160     super.headers(value);
1161     return this;
1162   }
1163 
1164   @Override
1165   public Html height(final String value)
1166   {
1167     super.height(value);
1168     return this;
1169   }
1170 
1171   @Override
1172   public Html href(final String value)
1173   {
1174     super.href(value);
1175     return this;
1176   }
1177 
1178   @Override
1179   public Html hreflang(final String value)
1180   {
1181     super.hreflang(value);
1182     return this;
1183   }
1184 
1185   @Override
1186   public Html hspace(final String value)
1187   {
1188     super.hspace(value);
1189     return this;
1190   }
1191 
1192   @Override
1193   public Html httpEquiv(final String value)
1194   {
1195     super.httpEquiv(value);
1196     return this;
1197   }
1198 
1199   @Override
1200   public Html id(final String value)
1201   {
1202     super.id(value);
1203     return this;
1204   }
1205 
1206   @Override
1207   public Html ismap(final String value)
1208   {
1209     super.ismap(value);
1210     return this;
1211   }
1212 
1213   @Override
1214   public Html label(final String value)
1215   {
1216     super.label(value);
1217     return this;
1218   }
1219 
1220   @Override
1221   public Html lang(final String value)
1222   {
1223     super.lang(value);
1224     return this;
1225   }
1226 
1227   @Override
1228   public Html language(final String value)
1229   {
1230     super.language(value);
1231     return this;
1232   }
1233 
1234   @Override
1235   public Html link(final String value)
1236   {
1237     super.link(value);
1238     return this;
1239   }
1240 
1241   @Override
1242   public Html longdesc(final String value)
1243   {
1244     super.longdesc(value);
1245     return this;
1246   }
1247 
1248   @Override
1249   public Html marginheight(final String value)
1250   {
1251     super.marginheight(value);
1252     return this;
1253   }
1254 
1255   @Override
1256   public Html marginwidth(final String value)
1257   {
1258     super.marginwidth(value);
1259     return this;
1260   }
1261 
1262   @Override
1263   public Html maxlength(final String value)
1264   {
1265     super.maxlength(value);
1266     return this;
1267   }
1268 
1269   @Override
1270   public Html media(final String value)
1271   {
1272     super.media(value);
1273     return this;
1274   }
1275 
1276   @Override
1277   public Html method(final String value)
1278   {
1279     super.method(value);
1280     return this;
1281   }
1282 
1283   @Override
1284   public Html multiple(final String value)
1285   {
1286     super.multiple(value);
1287     return this;
1288   }
1289 
1290   @Override
1291   public Html name(final String value)
1292   {
1293     super.name(value);
1294     return this;
1295   }
1296 
1297   @Override
1298   public Html nohref(final String value)
1299   {
1300     super.nohref(value);
1301     return this;
1302   }
1303 
1304   @Override
1305   public Html noshade(final String value)
1306   {
1307     super.noshade(value);
1308     return this;
1309   }
1310 
1311   @Override
1312   public Html nowrap(final String value)
1313   {
1314     super.nowrap(value);
1315     return this;
1316   }
1317 
1318   @Override
1319   public Html object(final String value)
1320   {
1321     super.object(value);
1322     return this;
1323   }
1324 
1325   @Override
1326   public Html onblur(final String value)
1327   {
1328     super.onblur(value);
1329     return this;
1330   }
1331 
1332   @Override
1333   public Html onchange(final String value)
1334   {
1335     super.onchange(value);
1336     return this;
1337   }
1338 
1339   @Override
1340   public Html onclick(final String value)
1341   {
1342     super.onclick(value);
1343     return this;
1344   }
1345 
1346   @Override
1347   public Html ondblclick(final String value)
1348   {
1349     super.ondblclick(value);
1350     return this;
1351   }
1352 
1353   @Override
1354   public Html onfocus(final String value)
1355   {
1356     super.onfocus(value);
1357     return this;
1358   }
1359 
1360   @Override
1361   public Html onkeydown(final String value)
1362   {
1363     super.onkeydown(value);
1364     return this;
1365   }
1366 
1367   @Override
1368   public Html onkeypress(final String value)
1369   {
1370     super.onkeypress(value);
1371     return this;
1372   }
1373 
1374   @Override
1375   public Html onkeyup(final String value)
1376   {
1377     super.onkeyup(value);
1378     return this;
1379   }
1380 
1381   @Override
1382   public Html onload(final String value)
1383   {
1384     super.onload(value);
1385     return this;
1386   }
1387 
1388   @Override
1389   public Html onmousedown(final String value)
1390   {
1391     super.onmousedown(value);
1392     return this;
1393   }
1394 
1395   @Override
1396   public Html onmousemove(final String value)
1397   {
1398     super.onmousemove(value);
1399     return this;
1400   }
1401 
1402   @Override
1403   public Html onmouseout(final String value)
1404   {
1405     super.onmouseout(value);
1406     return this;
1407   }
1408 
1409   @Override
1410   public Html onmouseover(final String value)
1411   {
1412     super.onmouseover(value);
1413     return this;
1414   }
1415 
1416   @Override
1417   public Html onmouseup(final String value)
1418   {
1419     super.onmouseup(value);
1420     return this;
1421   }
1422 
1423   @Override
1424   public Html onreset(final String value)
1425   {
1426     super.onreset(value);
1427     return this;
1428   }
1429 
1430   @Override
1431   public Html onselect(final String value)
1432   {
1433     super.onselect(value);
1434     return this;
1435   }
1436 
1437   @Override
1438   public Html onsubmit(final String value)
1439   {
1440     super.onsubmit(value);
1441     return this;
1442   }
1443 
1444   @Override
1445   public Html onunload(final String value)
1446   {
1447     super.onunload(value);
1448     return this;
1449   }
1450 
1451   @Override
1452   public Html profile(final String value)
1453   {
1454     super.profile(value);
1455     return this;
1456   }
1457 
1458   @Override
1459   public Html prompt(final String value)
1460   {
1461     super.prompt(value);
1462     return this;
1463   }
1464 
1465   @Override
1466   public Html readonly(final String value)
1467   {
1468     super.readonly(value);
1469     return this;
1470   }
1471 
1472   @Override
1473   public Html rel(final String value)
1474   {
1475     super.rel(value);
1476     return this;
1477   }
1478 
1479   @Override
1480   public Html rev(final String value)
1481   {
1482     super.rev(value);
1483     return this;
1484   }
1485 
1486   @Override
1487   public Html rows(final String value)
1488   {
1489     super.rows(value);
1490     return this;
1491   }
1492 
1493   @Override
1494   public Html rowspan(final String value)
1495   {
1496     super.rowspan(value);
1497     return this;
1498   }
1499 
1500   @Override
1501   public Html rules(final String value)
1502   {
1503     super.rules(value);
1504     return this;
1505   }
1506 
1507   @Override
1508   public Html scheme(final String value)
1509   {
1510     super.scheme(value);
1511     return this;
1512   }
1513 
1514   @Override
1515   public Html scope(final String value)
1516   {
1517     super.scope(value);
1518     return this;
1519   }
1520 
1521   @Override
1522   public Html scrolling(final String value)
1523   {
1524     super.scrolling(value);
1525     return this;
1526   }
1527 
1528   @Override
1529   public Html selected(final String value)
1530   {
1531     super.selected(value);
1532     return this;
1533   }
1534 
1535   @Override
1536   public Html shape(final String value)
1537   {
1538     super.shape(value);
1539     return this;
1540   }
1541 
1542   @Override
1543   public Html size(final String value)
1544   {
1545     super.size(value);
1546     return this;
1547   }
1548 
1549   @Override
1550   public Html span(final String value)
1551   {
1552     super.span(value);
1553     return this;
1554   }
1555 
1556   @Override
1557   public Html src(final String value)
1558   {
1559     super.src(value);
1560     return this;
1561   }
1562 
1563   @Override
1564   public Html standby(final String value)
1565   {
1566     super.standby(value);
1567     return this;
1568   }
1569 
1570   @Override
1571   public Html startAttr(final String value)
1572   {
1573     super.startAttr(value);
1574     return this;
1575   }
1576 
1577   @Override
1578   public Html style(final String value)
1579   {
1580     super.style(value);
1581     return this;
1582   }
1583 
1584   @Override
1585   public Html summary(final String value)
1586   {
1587     super.summary(value);
1588     return this;
1589   }
1590 
1591   @Override
1592   public Html tabindex(final String value)
1593   {
1594     super.tabindex(value);
1595     return this;
1596   }
1597 
1598   @Override
1599   public Html target(final String value)
1600   {
1601     super.target(value);
1602     return this;
1603   }
1604 
1605   @Override
1606   public Html textAttr(final String value)
1607   {
1608     super.textAttr(value);
1609     return this;
1610   }
1611 
1612   @Override
1613   public Html title(final String value)
1614   {
1615     super.title(value);
1616     return this;
1617   }
1618 
1619   @Override
1620   public Html type(final String value)
1621   {
1622     super.type(value);
1623     return this;
1624   }
1625 
1626   @Override
1627   public Html usemap(final String value)
1628   {
1629     super.usemap(value);
1630     return this;
1631   }
1632 
1633   @Override
1634   public Html valign(final String value)
1635   {
1636     super.valign(value);
1637     return this;
1638   }
1639 
1640   @Override
1641   public Html value(final String value)
1642   {
1643     super.value(value);
1644     return this;
1645   }
1646 
1647   @Override
1648   public Html valuetype(final String value)
1649   {
1650     super.valuetype(value);
1651     return this;
1652   }
1653 
1654   @Override
1655   public Html vlink(final String value)
1656   {
1657     super.vlink(value);
1658     return this;
1659   }
1660 
1661   @Override
1662   public Html vspace(final String value)
1663   {
1664     super.vspace(value);
1665     return this;
1666   }
1667 
1668   @Override
1669   public Html width(final String value)
1670   {
1671     super.width(value);
1672     return this;
1673   }
1674 
1675   @Override
1676   public Html indent(final Indenter indenter)
1677   {
1678     super.indent(indenter);
1679     return this;
1680   }
1681 
1682   // --- object basics --------------------------------------------------------
1683 
1684 }