|
a/tool/src/www/Table.java |
|
b/tool/src/www/Table.java |
|
... |
|
... |
36 |
|
36 |
|
37 |
String
|
37 |
String
|
38 |
itemData = "",
|
38 |
itemData = "",
|
39 |
headerData = "";
|
39 |
headerData = "";
|
40 |
|
40 |
|
|
|
41 |
|
|
|
42 |
/**
|
|
|
43 |
* Creates a simplified table where the two elements are centered
|
|
|
44 |
* @param value1
|
|
|
45 |
* @param size1
|
|
|
46 |
* @param value2
|
|
|
47 |
* @param size2
|
|
|
48 |
* @return
|
|
|
49 |
*/
|
|
|
50 |
public static String simple(String value1, int size1, String value2, int size2){
|
|
|
51 |
return "<table style=\"text-align: left; \" border=\"0\"\n" +
|
|
|
52 |
" cellpadding=\"0\" cellspacing=\"0\">\n" +
|
|
|
53 |
" <tbody>\n" +
|
|
|
54 |
" <tr>\n" +
|
|
|
55 |
" <td style=\"width: " + size1 + "px;\">"
|
|
|
56 |
+ value1
|
|
|
57 |
+ "</td>\n" +
|
|
|
58 |
" <td style=\"width: " + size2 + "px;\">"
|
|
|
59 |
+ value2
|
|
|
60 |
+ "</td>\n" +
|
|
|
61 |
" </tr>\n" +
|
|
|
62 |
" </tbody>\n" +
|
|
|
63 |
"</table>";
|
|
|
64 |
}
|
|
|
65 |
|
41 |
/**
|
66 |
/**
|
42 |
* Public constructor, important to define the array
|
67 |
* Public constructor, important to define the array
|
43 |
* @param header
|
68 |
* @param header
|
44 |
*/
|
69 |
*/
|
45 |
public Table(String[] header){
|
70 |
public Table(String[] header){
|
|
... |
|
... |
58 |
+ result
|
83 |
+ result
|
59 |
+ "</tr>";
|
84 |
+ "</tr>";
|
60 |
}
|
85 |
}
|
61 |
|
86 |
|
62 |
|
87 |
|
63 |
/**
|
88 |
|
|
|
89 |
/**
|
64 |
* Public constructor, important to define the array
|
90 |
* Public constructor, important to define the array
|
65 |
* @param header
|
91 |
* @param header
|
66 |
* @param length
|
92 |
* @param length
|
67 |
*/
|
93 |
*/
|
68 |
public Table(String[] header, int[] length){
|
94 |
public Table(String[] header, int[] length){
|