dateFormatOptions.setFormatType(FormatType.MEDIUM);
DateFormat dateFormat = DateFormat.create(dateFormatOptions);
NumberFormatOptions numberFormatOptions = NumberFormatOptions.create();
numberFormatOptions.setPattern("#,###.##");
NumberFormat numberFormat = NumberFormat.create(numberFormatOptions);
for (int i = 0; i < gTable.getNumberOfColumns(); i++) {
com.googlecode.gwt.charts.client.ColumnType type = gTable.getColumnType(i);
if (com.googlecode.gwt.charts.client.ColumnType.DATE.equals(type)) {
dateFormat.format(gTable, i);
}
else if (com.googlecode.gwt.charts.client.ColumnType.NUMBER.equals(type)) {
numberFormat.format(gTable, i);
}
}
return gTable;
}