< prev index next >

src/java.desktop/share/classes/javax/swing/text/DefaultFormatterFactory.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  47  *       the default formatter.
  48  * </ol>
  49  * <p>
  50  * The following code shows how to configure a
  51  * <code>JFormattedTextField</code> with two
  52  * <code>JFormattedTextField.AbstractFormatter</code>s, one for display and
  53  * one for editing.
  54  * <pre>
  55  * JFormattedTextField.AbstractFormatter editFormatter = ...;
  56  * JFormattedTextField.AbstractFormatter displayFormatter = ...;
  57  * DefaultFormatterFactory factory = new DefaultFormatterFactory(
  58  *                 displayFormatter, displayFormatter, editFormatter);
  59  * JFormattedTextField tf = new JFormattedTextField(factory);
  60  * </pre>
  61  * <p>
  62  * <strong>Warning:</strong>
  63  * Serialized objects of this class will not be compatible with
  64  * future Swing releases. The current serialization support is
  65  * appropriate for short term storage or RMI between applications running
  66  * the same version of Swing.  As of 1.4, support for long term storage
  67  * of all JavaBeans&trade;
  68  * has been added to the <code>java.beans</code> package.
  69  * Please see {@link java.beans.XMLEncoder}.
  70  *
  71  * @see javax.swing.JFormattedTextField
  72  *
  73  * @since 1.4
  74  */
  75 @SuppressWarnings("serial") // Same-version serialization only
  76 public class DefaultFormatterFactory extends JFormattedTextField.AbstractFormatterFactory implements Serializable {
  77     /**
  78      * Default <code>AbstractFormatter</code> to use if a more specific one has
  79      * not been specified.
  80      */
  81     private JFormattedTextField.AbstractFormatter defaultFormat;
  82 
  83     /**
  84      * <code>JFormattedTextField.AbstractFormatter</code> to use for display.
  85      */
  86     private JFormattedTextField.AbstractFormatter displayFormat;
  87 




  47  *       the default formatter.
  48  * </ol>
  49  * <p>
  50  * The following code shows how to configure a
  51  * <code>JFormattedTextField</code> with two
  52  * <code>JFormattedTextField.AbstractFormatter</code>s, one for display and
  53  * one for editing.
  54  * <pre>
  55  * JFormattedTextField.AbstractFormatter editFormatter = ...;
  56  * JFormattedTextField.AbstractFormatter displayFormatter = ...;
  57  * DefaultFormatterFactory factory = new DefaultFormatterFactory(
  58  *                 displayFormatter, displayFormatter, editFormatter);
  59  * JFormattedTextField tf = new JFormattedTextField(factory);
  60  * </pre>
  61  * <p>
  62  * <strong>Warning:</strong>
  63  * Serialized objects of this class will not be compatible with
  64  * future Swing releases. The current serialization support is
  65  * appropriate for short term storage or RMI between applications running
  66  * the same version of Swing.  As of 1.4, support for long term storage
  67  * of all JavaBeans
  68  * has been added to the <code>java.beans</code> package.
  69  * Please see {@link java.beans.XMLEncoder}.
  70  *
  71  * @see javax.swing.JFormattedTextField
  72  *
  73  * @since 1.4
  74  */
  75 @SuppressWarnings("serial") // Same-version serialization only
  76 public class DefaultFormatterFactory extends JFormattedTextField.AbstractFormatterFactory implements Serializable {
  77     /**
  78      * Default <code>AbstractFormatter</code> to use if a more specific one has
  79      * not been specified.
  80      */
  81     private JFormattedTextField.AbstractFormatter defaultFormat;
  82 
  83     /**
  84      * <code>JFormattedTextField.AbstractFormatter</code> to use for display.
  85      */
  86     private JFormattedTextField.AbstractFormatter displayFormat;
  87 


< prev index next >