forgot to commit

This commit is contained in:
Keith Donald 2009-06-01 18:49:00 +00:00
parent b0d11e8c15
commit b9682d7823
3 changed files with 12 additions and 0 deletions

View File

@ -40,6 +40,10 @@ public class DecimalFormatter implements Formatter<BigDecimal> {
initDefaults();
}
public Class<BigDecimal> getFormattedObjectType() {
return BigDecimal.class;
}
public DecimalFormatter(String pattern) {
initDefaults();
formatFactory.setPattern(pattern);

View File

@ -33,6 +33,10 @@ public class IntegerFormatter implements Formatter<Long> {
private boolean lenient;
public Class<Long> getFormattedObjectType() {
return Long.class;
}
public String format(Long integer, Locale locale) {
if (integer == null) {
return "";

View File

@ -35,6 +35,10 @@ public class PercentFormatter implements Formatter<BigDecimal> {
private boolean lenient;
public Class<BigDecimal> getFormattedObjectType() {
return BigDecimal.class;
}
public String format(BigDecimal decimal, Locale locale) {
if (decimal == null) {
return "";