Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cantaa.util.wicket.converter;
 
 
Converter for the Price-Type

Author(s):
Hans Lesmeister
public class MoneyConverter extends AbstractAmountConverter<Money> {
    @Override
    protected Class<MoneygetTargetType() {
        return Money.class;
    }
    @Override
    protected DecimalFormat getDecimalFormatInstance(Locale locale) {
        return (DecimalFormat) NumberFormat.getCurrencyInstance(locale);
    }
    @Override
    protected Money createAmount(BigDecimal value) {
        return new Money(value);
    }
New to GrepCode? Check out our FAQ X