Searched defs:formatter (Results 1 - 18 of 18) sorted by relevance

/openjdk7/jdk/src/share/classes/java/util/
H A DFormattable.java122 * Formats the object using the provided {@link Formatter formatter}.
124 * @param formatter
125 * The {@link Formatter formatter}. Implementing classes may call
126 * {@link Formatter#out() formatter.out()} or {@link
127 * Formatter#locale() formatter.locale()} to obtain the {@link
129 * <tt>formatter</tt> respectively.
161 * formatter class specification.
163 void formatTo(Formatter formatter, int flags, int width, int precision); argument
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXAWTFormatter.java40 private MessageFormat formatter; field in class:XAWTFormatter
85 if (formatter == null) {
86 formatter = new MessageFormat(format);
88 formatter.format(args, text, null);
/openjdk7/jdk/src/share/classes/java/util/logging/
H A DStreamHandler.java50 * <li> java.util.logging.StreamHandler.formatter
76 setFormatter(manager.getFormatterProperty(cname +".formatter", new SimpleFormatter()));
103 * @param formatter Formatter to be used to format output
105 public StreamHandler(OutputStream out, Formatter formatter) { argument
108 setFormatter(formatter);
H A DHandler.java52 private Formatter formatter; field in class:Handler
117 formatter = newFormatter;
125 return formatter;
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/io/
H A DMalformedByteSequenceException.java46 /** message formatter **/
73 * @param formatter The MessageFormatter used for building the
81 public MalformedByteSequenceException(MessageFormatter formatter, argument
83 fFormatter = formatter;
131 // The references to the message formatter and locale
/openjdk7/jdk/src/share/classes/sun/tools/jstat/
H A DJStatLogger.java127 public void logSamples(OutputFormatter formatter, int headerRate, argument
138 out.println(formatter.getHeader());
146 out.println(formatter.getHeader());
149 out.println(formatter.getRow());
/openjdk7/jdk/src/share/demo/applets/Clock/
H A DClock.java63 private SimpleDateFormat formatter; // Formats the date displayed field in class:Clock
74 formatter = new SimpleDateFormat("EEE MMM dd hh:mm:ss yyyy",
77 lastdate = formatter.format(currentDate);
114 formatter.applyPattern("s");
116 s = Integer.parseInt(formatter.format(currentDate));
120 formatter.applyPattern("m");
122 m = Integer.parseInt(formatter.format(currentDate));
126 formatter.applyPattern("h");
128 h = Integer.parseInt(formatter.format(currentDate));
146 formatter
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DConsole.java163 * of the formatter class specification.
168 formatter.format(fmt, args).flush();
202 * formatter class specification.
232 * of the formatter class specification.
296 * section of the formatter class specification.
366 private Formatter formatter; field in class:Console
571 formatter = new Formatter(out);
H A DPrintStream.java63 private Formatter formatter; field in class:PrintStream
861 * formatter class specification.
911 * formatter class specification.
954 * formatter class specification.
967 if ((formatter == null)
968 || (formatter.locale() != Locale.getDefault()))
969 formatter = new Formatter((Appendable) this);
970 formatter.format(Locale.getDefault(), format, args);
1011 * formatter class specification.
1024 if ((formatter
[all...]
H A DPrintWriter.java68 private Formatter formatter; field in class:PrintWriter
794 * formatter class specification.
845 * formatter class specification.
902 if ((formatter == null)
903 || (formatter.locale() != Locale.getDefault()))
904 formatter = new Formatter(this);
905 formatter.format(Locale.getDefault(), format, args);
949 * formatter class specification.
962 if ((formatter == null) || (formatter
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DForwardingDiagnosticFormatter.java38 * A delegated diagnostic formatter delegates all formatting
39 * actions to an underlying formatter (aka the delegated formatter).
50 * The delegated formatter
52 protected F formatter; field in class:ForwardingDiagnosticFormatter
55 * configuration object used by this formatter
59 public ForwardingDiagnosticFormatter(F formatter) { argument
60 this.formatter = formatter;
61 this.configuration = new ForwardingConfiguration(formatter
[all...]
H A DJCDiagnostic.java64 DiagnosticFormatter<JCDiagnostic> formatter; field in class:JCDiagnostic.Factory
81 this.formatter = new BasicDiagnosticFormatter(messages);
230 return new JCDiagnostic(formatter, kind, lc, flags, source, pos, qualify(kind, key), args);
357 * @param fomatter the formatter to use for the diagnostic
365 protected JCDiagnostic(DiagnosticFormatter<JCDiagnostic> formatter, argument
376 this.defaultFormatter = formatter;
H A DRichDiagnosticFormatter.java48 * A rich diagnostic formatter is a formatter that provides better integration
51 * the diagnostic is rendered using a standard formatter, whose type/symbol printer
52 * has been replaced by a more refined version provided by this rich formatter.
53 * The rich formatter currently enables three different features: (i) simple class
75 /* name simplifier used by this formatter */
78 /* type/symbol printer used by this formatter */
100 configuration = new RichConfiguration(Options.instance(context), formatter);
112 sb.append(formatter.format(diag, l));
115 String indent = formatter
604 RichConfiguration(Options options, AbstractDiagnosticFormatter formatter) argument
[all...]
/openjdk7/jdk/src/share/demo/management/JTop/
H A DJTop.java225 NumberFormat formatter; field in class:JTop.DoubleRenderer
233 if (formatter==null) {
234 formatter = NumberFormat.getInstance();
235 formatter.setMinimumFractionDigits(4);
237 setText((value == null) ? "" : formatter.format(value));
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJFormattedTextField.java87 * AbstractFormatter formatter = ftf.getFormatter();
88 * if (formatter != null) {
91 * formatter.stringToValue(text);
311 * @param formatter AbstractFormatter to use for formatting.
313 public JFormattedTextField(AbstractFormatter formatter) { argument
314 this(new DefaultFormatterFactory(formatter));
1076 AbstractFormatter formatter = (AbstractFormatter)super.clone();
1078 formatter.ftf = null;
1079 return formatter;
H A DJTable.java5356 NumberFormat formatter; field in class:JTable.DoubleRenderer
5360 if (formatter == null) {
5361 formatter = NumberFormat.getInstance();
5363 setText((value == null) ? "" : formatter.format(value));
5368 DateFormat formatter; field in class:JTable.DateRenderer
5372 if (formatter==null) {
5373 formatter = DateFormat.getDateInstance();
5375 setText((value == null) ? "" : formatter.format(value));
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DInternationalFormatter.java372 InternationalFormatter formatter = (InternationalFormatter)super.
375 formatter.literalMask = null;
376 formatter.iterator = null;
377 formatter.validMask = false;
378 formatter.string = null;
379 return formatter;
978 void resetFromValue(InternationalFormatter formatter) { argument
983 text = formatter.valueToString(value);
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/
H A DBasisLibrary.java926 // This formatter is used to convert numbers according to the XPath
938 * Removes the decimal if null. Uses a specialized formatter object
958 // Use the XPath formatter to ignore locales
981 DecimalFormat formatter) {
983 if (formatter == null) {
984 formatter = defaultFormatter;
990 formatter.applyLocalizedPattern(pattern);
992 formatter.format(number, result, _fieldPosition);
980 formatNumber(double number, String pattern, DecimalFormat formatter) argument

Completed in 12048 milliseconds