Inheritance: java.lang.Object, java.lang.Cloneable, java.io.Serializable
        /// <summary>
        /// Gets the <code>DecimalFormatSymbols</code> instance for the specified
        /// locale.  This method provides access to <code>DecimalFormatSymbols</code>
        /// instances for locales supported by the Java runtime itself as well
        /// as for those supported by installed
        /// {@link java.text.spi.DecimalFormatSymbolsProvider
        /// DecimalFormatSymbolsProvider} implementations.
        /// If the specified locale contains the <seealso cref="java.util.Locale#UNICODE_LOCALE_EXTENSION"/>
        /// for the numbering system, the instance is initialized with the specified numbering
        /// system if the JRE implementation supports it. For example,
        /// <pre>
        /// NumberFormat.getNumberInstance(Locale.forLanguageTag("th-TH-u-nu-thai"))
        /// </pre>
        /// This may return a {@code NumberFormat} instance with the Thai numbering system,
        /// instead of the Latin numbering system.
        /// </summary>
        /// <param name="locale"> the desired locale. </param>
        /// <returns> a <code>DecimalFormatSymbols</code> instance. </returns>
        /// <exception cref="NullPointerException"> if <code>locale</code> is null
        /// @since 1.6 </exception>
        public static DecimalFormatSymbols GetInstance(Locale locale)
        {
            LocaleProviderAdapter adapter;

            adapter = LocaleProviderAdapter.getAdapter(typeof(DecimalFormatSymbolsProvider), locale);
            DecimalFormatSymbolsProvider provider = adapter.DecimalFormatSymbolsProvider;
            DecimalFormatSymbols         dfsyms   = provider.GetInstance(locale);

            if (dfsyms == null)
            {
                provider = LocaleProviderAdapter.forJRE().DecimalFormatSymbolsProvider;
                dfsyms   = provider.GetInstance(locale);
            }
            return(dfsyms);
        }
        /// <summary>
        /// Override equals.
        /// </summary>
        public override bool Equals(Object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (this == obj)
            {
                return(true);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            DecimalFormatSymbols other = (DecimalFormatSymbols)obj;

            return(ZeroDigit_Renamed == other.ZeroDigit_Renamed && GroupingSeparator_Renamed == other.GroupingSeparator_Renamed && DecimalSeparator_Renamed == other.DecimalSeparator_Renamed && Percent_Renamed == other.Percent_Renamed && PerMill_Renamed == other.PerMill_Renamed && Digit_Renamed == other.Digit_Renamed && MinusSign_Renamed == other.MinusSign_Renamed && PatternSeparator_Renamed == other.PatternSeparator_Renamed && Infinity_Renamed.Equals(other.Infinity_Renamed) && NaN_Renamed.Equals(other.NaN_Renamed) && CurrencySymbol_Renamed.Equals(other.CurrencySymbol_Renamed) && IntlCurrencySymbol.Equals(other.IntlCurrencySymbol) && Currency_Renamed == other.Currency_Renamed && MonetarySeparator == other.MonetarySeparator && ExponentialSeparator.Equals(other.ExponentialSeparator) && Locale.Equals(other.Locale));
        }
        public void setDecimalFormatSymbols(DecimalFormatSymbols c)
        {

        }
示例#4
0
 public void setDecimalFormatSymbols(DecimalFormatSymbols c)
 {
 }
示例#5
0
 public DecimalFormat(String pattern, DecimalFormatSymbols symbols)
 {
 }
示例#6
0
 public NumberField()
 {
   Widget.NumberField numberField = this;
   this.value = double.NaN;
   DecimalFormat.__\u003Cclinit\u003E();
   string str = "0.000";
   DecimalFormatSymbols.__\u003Cclinit\u003E();
   DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols((Locale) Locale.US);
   this.formatter = new DecimalFormat(str, decimalFormatSymbols);
 }