/[classpath]/classpath/javax/swing/JSpinner.java
ViewVC logotype

Diff of /classpath/javax/swing/JSpinner.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by trebligd, Thu Jul 21 14:59:31 2005 UTC revision 1.13 by rabbit78, Thu Sep 22 15:11:37 2005 UTC
# Line 258  public class JSpinner extends JComponent Line 258  public class JSpinner extends JComponent
258    }    }
259    
260    /**    /**
261       * A <code>JSpinner</code> editor used for the {@link SpinnerListModel}.
262       * This editor uses a <code>JFormattedTextField</code> to edit the values
263       * of the spinner.
264       *
265       * @author Roman Kennke (kennke@aicas.com)
266       */
267      public static class ListEditor extends DefaultEditor
268      {
269        /**
270         * Creates a new instance of <code>ListEditor</code>.
271         *
272         * @param spinner the spinner for which this editor is used
273         */
274        public ListEditor(JSpinner spinner)
275        {
276          super(spinner);
277        }
278    
279        public SpinnerListModel getModel()
280        {
281          return (SpinnerListModel) getSpinner().getModel();
282        }
283      }
284    
285      /**
286     * An editor class for a <code>JSpinner</code> that is used     * An editor class for a <code>JSpinner</code> that is used
287     * for displaying and editing dates (e.g. that uses     * for displaying and editing dates (e.g. that uses
288     * <code>SpinnerDateModel</code> as model).     * <code>SpinnerDateModel</code> as model).
# Line 307  public class JSpinner extends JComponent Line 332  public class JSpinner extends JComponent
332      /**      /**
333       * Initializes the JFormattedTextField for this editor.       * Initializes the JFormattedTextField for this editor.
334       *       *
335       * @param the date format to use in the formatted text field       * @param format the date format to use in the formatted text field
336       */       */
337      private void init(SimpleDateFormat format)      private void init(SimpleDateFormat format)
338      {      {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26