ResourceColumn col = (ResourceColumn)cols.get(i);
hideColumn(col);
}
ArrayList sourceColumns = new ArrayList();
for (int i=0; i<source.getSize(); i++) {
Column nextField = source.getField(i);
sourceColumns.add(nextField);
}
Collections.sort(sourceColumns, new Comparator() {
public int compare(Object o1, Object o2) {
Column lhs = (Column) o1;
Column rhs = (Column) o2;
return lhs.getOrder()-rhs.getOrder();
}
});
for (int i=0; i<sourceColumns.size(); i++) {
Column nextField = (Column) sourceColumns.get(i);
add(nextField.getID(), i, nextField.getWidth());
}
}