/[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.6.2.6 by gnu_andrew, Tue Aug 2 20:12:37 2005 UTC revision 1.6.2.7 by gnu_andrew, Wed Nov 2 00:43:47 2005 UTC
# Line 108  public class JSpinner extends JComponent Line 108  public class JSpinner extends JComponent
108      /**      /**
109       * DOCUMENT ME!       * DOCUMENT ME!
110       */       */
111      public void commitEdit()      public void commitEdit() throws ParseException
       throws ParseException  
112      {      {
113      } /* TODO */        // TODO: Implement this properly.
114        }
115    
116      /**      /**
117       * DOCUMENT ME!       * DOCUMENT ME!
# Line 184  public class JSpinner extends JComponent Line 184  public class JSpinner extends JComponent
184       */       */
185      public void propertyChange(PropertyChangeEvent event)      public void propertyChange(PropertyChangeEvent event)
186      {      {
187      } /* TODO */        // TODO: Implement this properly.
188        }
189            
190      /**      /**
191       * DOCUMENT ME!       * DOCUMENT ME!
# Line 193  public class JSpinner extends JComponent Line 194  public class JSpinner extends JComponent
194       */       */
195      public void stateChanged(ChangeEvent event)      public void stateChanged(ChangeEvent event)
196      {      {
197      } /* TODO */        // TODO: Implement this properly.
198        }
199            
     /* no-ops */  
200      public void removeLayoutComponent(Component child)      public void removeLayoutComponent(Component child)
201      {      {
202          // Nothing to do here.
203      }      }
204    
205      /**      /**
# Line 208  public class JSpinner extends JComponent Line 210  public class JSpinner extends JComponent
210       */       */
211      public void addLayoutComponent(String name, Component child)      public void addLayoutComponent(String name, Component child)
212      {      {
213          // Nothing to do here.
214      }      }
215    }    }
216    
# Line 258  public class JSpinner extends JComponent Line 261  public class JSpinner extends JComponent
261    }    }
262    
263    /**    /**
264       * A <code>JSpinner</code> editor used for the {@link SpinnerListModel}.
265       * This editor uses a <code>JFormattedTextField</code> to edit the values
266       * of the spinner.
267       *
268       * @author Roman Kennke (kennke@aicas.com)
269       */
270      public static class ListEditor extends DefaultEditor
271      {
272        /**
273         * Creates a new instance of <code>ListEditor</code>.
274         *
275         * @param spinner the spinner for which this editor is used
276         */
277        public ListEditor(JSpinner spinner)
278        {
279          super(spinner);
280        }
281    
282        public SpinnerListModel getModel()
283        {
284          return (SpinnerListModel) getSpinner().getModel();
285        }
286      }
287    
288      /**
289     * An editor class for a <code>JSpinner</code> that is used     * An editor class for a <code>JSpinner</code> that is used
290     * for displaying and editing dates (e.g. that uses     * for displaying and editing dates (e.g. that uses
291     * <code>SpinnerDateModel</code> as model).     * <code>SpinnerDateModel</code> as model).
# Line 307  public class JSpinner extends JComponent Line 335  public class JSpinner extends JComponent
335      /**      /**
336       * Initializes the JFormattedTextField for this editor.       * Initializes the JFormattedTextField for this editor.
337       *       *
338       * @param the date format to use in the formatted text field       * @param format the date format to use in the formatted text field
339       */       */
340      private void init(SimpleDateFormat format)      private void init(SimpleDateFormat format)
341      {      {

Legend:
Removed from v.1.6.2.6  
changed lines
  Added in v.1.6.2.7

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