Package org.springframework.richclient.components

Examples of org.springframework.richclient.components.BigDecimalTextField


   
    /**
     * @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;
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.components.BigDecimalTextField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.