/**
* @inheritDoc
*/
protected JComponent createControl(Map context) {
BigDecimalTextField component = null;
if (this.format == null) {
component = new BigDecimalTextField(this.nrOfNonDecimals,
this.nrOfDecimals, negativeSign, getRequiredSourceClass());
}
if (component == null && this.unformat == null) {
component = new BigDecimalTextField(this.nrOfNonDecimals,
this.nrOfDecimals, negativeSign, getRequiredSourceClass(),
new DecimalFormat(this.format));
}
if (component == null) {
component = new BigDecimalTextField(this.nrOfNonDecimals,
this.nrOfDecimals, negativeSign, getRequiredSourceClass(),
new DecimalFormat(this.format), new DecimalFormat(this.unformat));
}
if (scale != null) {
component.setScale(scale);
}
component.setHorizontalAlignment(this.alignment);
return component;
}