1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| @Override
protected void appendOptionHtml(AppendingStringBuffer buffer,
SuitesFileHolder choice, intindex, String selected)
{
if(index == 0)
{
buffer.append("\n<table><tr><td>\n");
} else
if((index + 1) % 4 == 1)
{
buffer.append("\n<tr><td>\n");
} else
{
buffer.append("\n<td>\n");
}
super.appendOptionHtml(buffer, choice, index, selected);
inttotalSize = this.getChoices().size();
if(index == totalSize - 1)
{
buffer.append("\n</td>");
if(totalSize % 4 != 0)
{
for(inti = 0; (i < 4 - totalSize % 4); i++)
{
buffer.append("<td></td>");
}
}
buffer.append("</tr></table>\n");
} else
if((index + 1) % 4 == 0)
{
buffer.append("\n</td></tr>\n");
} else
{
buffer.append("\n</td>\n");
}
}
|