Package ariba.ui.widgets

Examples of ariba.ui.widgets.FormatterFactory


        }
    }

    public static FormatterFactory getFormatterFactoryForType (String type)
    {
        FormatterFactory factory = null;
        synchronized (_formatterFactories) {
            factory = (FormatterFactory)_formatterFactories.get(type);
        }
        return factory;
    }
View Full Code Here


        formatters.put("currencyLong", BigDecimalMoneyFormatter.formattersByCurrencyWithSuffix());

        // Because of component dependency, we cannot reference the money formatter
        // directly.  Instead, it is registered dynamically.  If none has been register,
        // we fallback to old questionable formatting.
        FormatterFactory moneyFactory = getFormatterFactoryForType(MoneyFormatterKey);
        if (moneyFactory != null) {
            Object canonicalFmt = moneyFactory.getCanonicalFormatterForType(locale);
            Object objectFmt = moneyFactory.getObjectFormatterForType(locale);
            formatters.put(MoneyFormatterKey, objectFmt);
            xml.put(MoneyFormatterKey, new PipedFormatter(canonicalFmt, objectFmt));
        }
        else {
            // Object money = new AWVBigDecimalFormatter("$#,###.##", 2, locale);
View Full Code Here

TOP

Related Classes of ariba.ui.widgets.FormatterFactory

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.