]> WPIA git - gigi.git/commitdiff
Updated html attribute handling in DataTable
authorJanis Streib <janis@dogcraft.de>
Fri, 27 Jun 2014 00:09:16 +0000 (02:09 +0200)
committerJanis Streib <janis@dogcraft.de>
Fri, 27 Jun 2014 00:09:16 +0000 (02:09 +0200)
src/org/cacert/gigi/output/DataTable.java

index 60893b0446ef0875453168059abbc0a4881c527e..3f131a224c05ea3df8fe33014c8842c64cf4031e 100644 (file)
@@ -29,8 +29,7 @@ public class DataTable implements Outputable {
                        for (int j = 0; j < columnCount;) {
                                Cell current = cells.get((i * columnCount) + j);
                                j += current.getColSpan();
                        for (int j = 0; j < columnCount;) {
                                Cell current = cells.get((i * columnCount) + j);
                                j += current.getColSpan();
-                               out.println("<td " + current.getHtmlAttribs()
-                                               + " class=\"DataTD\">");
+                               out.println("<td " + current.getHtmlAttribs() + " >");
                                out.print(current.shouldTranslate() ? l.getTranslation(current
                                                .getText()) : current.getText());
                                out.print("</td>");
                                out.print(current.shouldTranslate() ? l.getTranslation(current
                                                .getText()) : current.getText());
                                out.print("</td>");
@@ -40,12 +39,6 @@ public class DataTable implements Outputable {
                out.println("</table>");
        }
 
                out.println("</table>");
        }
 
-       /**
-        * <b>Note:</b> All cells have the html attribute class="DataTD"!
-        * 
-        * @author janis
-        * 
-        */
        public static class Cell {
                private String text, htmlAttribs;
                private boolean translate;
        public static class Cell {
                private String text, htmlAttribs;
                private boolean translate;
@@ -64,11 +57,11 @@ public class DataTable implements Outputable {
                }
 
                public Cell(String text, boolean translate) {
                }
 
                public Cell(String text, boolean translate) {
-                       this(text, translate, 1, "");
+                       this(text, translate, 1, "class=\"DataTD\"");
                }
 
                public Cell(String text, boolean translate, int colSpan) {
                }
 
                public Cell(String text, boolean translate, int colSpan) {
-                       this(text, translate, colSpan, "");
+                       this(text, translate, colSpan, "class=\"DataTD\"");
                }
 
                public boolean shouldTranslate() {
                }
 
                public boolean shouldTranslate() {