public Class[] getSupportedTypes() {
return new Class[] { Money.class };
}
public String toText(Object value) {
Money money = (Money) value;
StringBuilder builder = new StringBuilder()
.append(format.format(money.getUnitPart()))
.append(decimalSeparator)
.append(padCents(money.getCentPart()))
.append(" ")
.append(money.getCurrency().getCurrencyCode());
return builder.toString();
}