< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthSpinnerUI.java

Print this page

        

*** 95,109 **** } } } /** ! * Initializes the <code>JSpinner</code> <code>border</code>, ! * <code>foreground</code>, and <code>background</code>, properties * based on the corresponding "Spinner.*" properties from defaults table. ! * The <code>JSpinners</code> layout is set to the value returned by ! * <code>createLayout</code>. This method is called by <code>installUI</code>. * * @see #uninstallDefaults * @see #installUI * @see #createLayout * @see LookAndFeel#installBorder --- 95,109 ---- } } } /** ! * Initializes the {@code JSpinner border}, ! * {@code foreground}, and {@code background}, properties * based on the corresponding "Spinner.*" properties from defaults table. ! * The {@code JSpinners} layout is set to the value returned by ! * {@code createLayout}. This method is called by {@code installUI}. * * @see #uninstallDefaults * @see #installUI * @see #createLayout * @see LookAndFeel#installBorder
*** 134,145 **** context.dispose(); } /** ! * Sets the <code>JSpinner's</code> layout manager to null. This ! * method is called by <code>uninstallUI</code>. * * @see #installDefaults * @see #uninstallUI */ @Override --- 134,145 ---- context.dispose(); } /** ! * Sets the {@code JSpinner's} layout manager to null. This ! * method is called by {@code uninstallUI}. * * @see #installDefaults * @see #uninstallUI */ @Override
*** 188,212 **** } /** * This method is called by installUI to get the editor component ! * of the <code>JSpinner</code>. By default it just returns ! * <code>JSpinner.getEditor()</code>. Subclasses can override ! * <code>createEditor</code> to return a component that contains * the spinner's editor or null, if they're going to handle adding ! * the editor to the <code>JSpinner</code> in an ! * <code>installUI</code> override. * <p> * Typically this method would be overridden to wrap the editor * with a container with a custom border, since one can't assume * that the editors border can be set directly. * <p> ! * The <code>replaceEditor</code> method is called when the spinners ! * editor is changed with <code>JSpinner.setEditor</code>. If you've * overriden this method, then you'll probably want to override ! * <code>replaceEditor</code> as well. * * @return the JSpinners editor JComponent, spinner.getEditor() by default * @see #installUI * @see #replaceEditor * @see JSpinner#getEditor --- 188,212 ---- } /** * This method is called by installUI to get the editor component ! * of the {@code JSpinner}. By default it just returns ! * {@code JSpinner.getEditor()}. Subclasses can override ! * {@code createEditor} to return a component that contains * the spinner's editor or null, if they're going to handle adding ! * the editor to the {@code JSpinner} in an ! * {@code installUI} override. * <p> * Typically this method would be overridden to wrap the editor * with a container with a custom border, since one can't assume * that the editors border can be set directly. * <p> ! * The {@code replaceEditor} method is called when the spinners ! * editor is changed with {@code JSpinner.setEditor}. If you've * overriden this method, then you'll probably want to override ! * {@code replaceEditor} as well. * * @return the JSpinners editor JComponent, spinner.getEditor() by default * @see #installUI * @see #replaceEditor * @see JSpinner#getEditor
*** 219,238 **** return editor; } /** ! * Called by the <code>PropertyChangeListener</code> when the ! * <code>JSpinner</code> editor property changes. It's the responsibility * of this method to remove the old editor and add the new one. By * default this operation is just: * <pre> * spinner.remove(oldEditor); * spinner.add(newEditor, "Editor"); * </pre> ! * The implementation of <code>replaceEditor</code> should be coordinated ! * with the <code>createEditor</code> method. * * @see #createEditor * @see #createPropertyChangeListener */ @Override --- 219,238 ---- return editor; } /** ! * Called by the {@code PropertyChangeListener} when the ! * {@code JSpinner} editor property changes. It's the responsibility * of this method to remove the old editor and add the new one. By * default this operation is just: * <pre> * spinner.remove(oldEditor); * spinner.add(newEditor, "Editor"); * </pre> ! * The implementation of {@code replaceEditor} should be coordinated ! * with the {@code createEditor} method. * * @see #createEditor * @see #createPropertyChangeListener */ @Override
< prev index next >