public static DataField newDecimalField(String name, int columns, String pattern, Class<?> mappedType) {
return newDecimalField(name, columns, pattern, 0, mappedType);
}
public static DataField newIntegerField(String name, int columns) {
IntegerFormatter editFormatter = new IntegerFormatter("#0");
IntegerFormatter displayFormatter = new IntegerFormatter("#0");
DataField df = newDataField(name, columns, new DefaultFormatterFactory(displayFormatter, displayFormatter, editFormatter, null));
return df;
}