Searched refs:DecimalFormat (Results 1 - 23 of 23) sorted by relevance

/openjdk7/jdk/test/sun/text/resources/Format/
H A DBug4651568.java30 import java.text.DecimalFormat;
42 DecimalFormat formatter =
43 (DecimalFormat) NumberFormat.getCurrencyInstance(locale);
/openjdk7/jdk/test/java/util/PluggableLocale/
H A DNumberFormatProviderTest.java114 DecimalFormat dfCur = new DecimalFormat(jreNumberPatterns[1],
120 DecimalFormat dfInt = new DecimalFormat(jreNumberPatterns[0],
128 DecimalFormat dfNum = new DecimalFormat(jreNumberPatterns[0],
133 DecimalFormat dfPer = new DecimalFormat(jreNumberPatterns[2],
151 void adjustForCurrencyDefaultFractionDigits(DecimalFormat df) {
178 if (nf instanceof DecimalFormat) {
[all...]
H A DCurrencyNameProviderTest.java112 DecimalFormat df;
116 df = new DecimalFormat(pattern, DecimalFormatSymbols.getInstance(OSAKA));
126 df = new DecimalFormat(pattern, DecimalFormatSymbols.getInstance());
/openjdk7/jdk/src/share/classes/sun/tools/jstat/
H A DRowClosure.java64 DecimalFormat df = new DecimalFormat(c.getFormat());
/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/
H A DFooNumberFormat.java29 * FooNumberFormat provides DecimalFormat methods required for the SPI testing.
32 private DecimalFormat df;
35 df = new DecimalFormat(pattern, dfs);
68 // DecimalFormat specific methods required for testing
/openjdk7/jdk/test/java/text/Format/DateFormat/
H A DBug4823811.java318 * pattern, and diffenrent month names in DecimalFormat
330 * DecimalFormat. This cannot happen, though. Because I didn't
331 * change DecimalFormat at all.
391 DecimalFormat dfEG = (DecimalFormat)NumberFormat.getInstance(localeEG);
392 DecimalFormat dfUS = (DecimalFormat)NumberFormat.getInstance(localeUS);
441 DecimalFormat dfEG = (DecimalFormat)NumberFormat.getInstance(localeEG);
442 DecimalFormat dfU
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/
H A DAbstractTranslet.java31 import java.text.DecimalFormat;
277 * Adds a DecimalFormat object to the _formatSymbols hashtable.
287 // Construct a DecimalFormat object containing the symbols we got
288 final DecimalFormat df = new DecimalFormat();
296 * Retrieves a named DecimalFormat object from _formatSymbols hashtable.
298 public final DecimalFormat getDecimalFormat(String name) {
304 DecimalFormat df = (DecimalFormat)_formatSymbols.get(name);
305 if (df == null) df = (DecimalFormat)_formatSymbol
[all...]
H A DBasisLibrary.java27 import java.text.DecimalFormat;
71 * StringBuilder is better, however, DecimalFormat only accept StringBuffer
912 private static DecimalFormat defaultFormatter, xpathFormatter;
917 defaultFormatter = (f instanceof DecimalFormat) ?
918 (DecimalFormat) f : new DecimalFormat();
928 xpathFormatter = new DecimalFormat("",
975 * DecimalFormat object comes from the 'formatSymbols' hashtable in
981 DecimalFormat formatter) {
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/report/
H A DIIOComparator.java44 import java.text.DecimalFormat;
56 private static final DecimalFormat decimalFormat =
57 new DecimalFormat("0.0");
H A DHTMLSeriesReporter.java51 import java.text.DecimalFormat;
82 private static final DecimalFormat decimalFormat =
83 new DecimalFormat("0.##");
H A DXMLHTMLReporter.java53 import java.text.DecimalFormat;
91 private static final DecimalFormat decimalFormat =
92 new DecimalFormat("0.##");
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DNumberFormatter.java39 * <code>DecimalFormat</code>) in any field but the exponent
44 * <code>DecimalFormat</code>) in the exponent field will
51 * DecimalFormat decimalFormat = new DecimalFormat("0.000E0");
58 * values, you should either force the DecimalFormat to contain at least
235 if (f instanceof DecimalFormat) {
236 return ((DecimalFormat)f).getDecimalFormatSymbols();
/openjdk7/jdk/src/share/classes/java/text/
H A DMessageFormat.java44 import java.text.DecimalFormat;
174 * <td headers="sc">{@code new} {@link DecimalFormat#DecimalFormat(String,DecimalFormatSymbols) DecimalFormat}{@code (subformatPattern,} {@link DecimalFormatSymbols#getInstance(Locale) DecimalFormatSymbols.getInstance}{@code (getLocale()))}
337 * @see DecimalFormat
542 if (fmt instanceof DecimalFormat) {
543 result.append(",number,").append(((DecimalFormat)fmt).toPattern());
1470 default: // DecimalFormat pattern
1472 newFormat = new DecimalFormat(segments[SEG_MODIFIER],
H A DNumberFormat.java118 * to a <code>DecimalFormat</code>. This will work for the vast majority
123 * NumberFormat and DecimalFormat are designed such that some controls
177 * @see DecimalFormat
769 DecimalFormat format = new DecimalFormat(numberPatterns[entry], symbols);
H A DDecimalFormat.java58 * <code>DecimalFormat</code> is a concrete subclass of
69 * <code>DecimalFormat</code> constructors directly, since the
71 * <code>DecimalFormat</code>. If you need to customize the format object, do
76 * if (f instanceof DecimalFormat) {
77 * ((DecimalFormat) f).setDecimalSeparatorAlwaysShown(true);
81 * <p>A <code>DecimalFormat</code> comprises a <em>pattern</em> and a set of
90 * <code>DecimalFormat</code> patterns have the following syntax:
127 * <p>A <code>DecimalFormat</code> pattern contains a positive and negative
144 * suffixes must be distinct for <code>DecimalFormat.parse()</code> to be able
146 * <code>DecimalFormat</cod
378 public class DecimalFormat extends NumberFormat { class in inherits:NumberFormat
395 public DecimalFormat() { method in class:DecimalFormat
432 public DecimalFormat(String pattern) { method in class:DecimalFormat
460 public DecimalFormat (String pattern, DecimalFormatSymbols symbols) { method in class:DecimalFormat
[all...]
H A DSimpleDateFormat.java1300 zeroDigit = ((DecimalFormat)numberFormat).getDecimalFormatSymbols().getZeroDigit();
2322 * Analyze the negative subpattern of DecimalFormat and set/update values
2326 if ((numberFormat instanceof DecimalFormat) &&
2328 String numberPattern = ((DecimalFormat)numberFormat).toPattern();
2340 minusSign = ((DecimalFormat)numberFormat).getDecimalFormatSymbols().getMinusSign();
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJSpinner.java1124 // This is here until DecimalFormat gets a constructor that
1163 * <code>DecimalFormat</code> object that's used to display
1168 * argument to <code>DecimalFormat</code>
1172 * @see java.text.DecimalFormat
1175 this(spinner, new DecimalFormat(decimalFormatPattern));
1189 * <code>DecimalFormat</code> object that's used to display
1196 * @see java.text.DecimalFormat
1198 private NumberEditor(JSpinner spinner, DecimalFormat format) {
1233 * Returns the <code>java.text.DecimalFormat</code> object the
1239 * @see java.text.DecimalFormat
[all...]
H A DJFormattedTextField.java841 new DecimalFormat("#.#"));
/openjdk7/jdk/src/share/classes/sun/print/
H A DServiceDialog.java54 import java.text.DecimalFormat;
985 DecimalFormat format = new DecimalFormat("####0");
1360 DecimalFormat format;
1362 format = new DecimalFormat("###.##");
1365 format = new DecimalFormat("##.##");
/openjdk7/jdk/src/share/classes/java/util/
H A DScanner.java161 * java.text.DecimalFormat DecimalFormat} object, <tt>df</tt>, and its and
179 * java.text.DecimalFormat#getPositivePrefix
184 * java.text.DecimalFormat#getPositiveSuffix
189 * java.text.DecimalFormat#getNegativePrefix
194 * java.text.DecimalFormat#getNegativeSuffix
1230 DecimalFormat df =
1231 (DecimalFormat)NumberFormat.getNumberInstance(locale);
H A DFormatter.java47 import java.text.DecimalFormat;
858 * the locale's {@linkplain java.text.DecimalFormat#getGroupingSize() grouping
4104 DecimalFormat df = (DecimalFormat) NumberFormat.getIntegerInstance(l);
/openjdk7/jdk/test/java/util/Locale/
H A DLocaleTest.java753 DecimalFormat thaiCurrency = (DecimalFormat)NumberFormat.getCurrencyInstance(
/openjdk7/jdk/make/java/text/base/
H A DFILES_java.gmk42 java/text/DecimalFormat.java \

Completed in 138 milliseconds