ArrayList row = null;
ArrayList outputRow = null;
Object column = null;
Object prevBindObject = null;
Object currBindObject = null;
ListElementMember element = null;
int leaderCount = 0;
String previousLeaderValue = null;
String currentLeaderValue = "";
int leaderHeaderIndex = 0;
ReportColumn[] cols = getColumns();
int colNumber = cols.length;
float currTotal1Amount = 0;
float currTotal2Amount = 0;
float currTotal3Amount = 0;
float total1Amount = 0;
float total2Amount = 0;
float total3Amount = 0;
float repTotal1Amount = 0;
float repTotal2Amount = 0;
float repTotal3Amount = 0;
String prevBindValue = null;
String currBindValue = "";
switch (i) {
case 0:
size = res.size();
// set leader line index
leaderHeaderIndex = result.size();
// add table header line for new leader
result.add(getTableHeader());
for (int j = 0; j < size; ++j) {
row = (ArrayList) res.get(j);
contentRow = new ReportContentString();
outputRow = new ArrayList();
rowSize = row.size();
for (int k = 0; k < rowSize; ++k) {
if ( k < colNumber ) {
column = row.get(k);
if (k == 4) {
// quantiy
column = new String(column.toString());
}
element = outputObject(column, getColumnName(k));
if ( cols[k].isVisible() ) {
outputRow.add(element);
}
if (k == getLeader()) {
// get leader column value
currentLeaderValue = element.getDisplayString();
}
if (k == leaderBind) {
// save leader object for binding
currBindObject = column;
currBindValue = element.getDisplayString();
}
if (k == 6) {
// total amount sum 1
if (column instanceof Float) {