< prev index next >

src/java.desktop/share/classes/javax/swing/JScrollBar.java

Print this page

        

*** 66,76 **** * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @see JScrollPane * @beaninfo * attribute: isContainer false --- 66,76 ---- * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. * * @see JScrollPane * @beaninfo * attribute: isContainer false
*** 136,146 **** * Creates a scrollbar with the specified orientation, * value, extent, minimum, and maximum. * The "extent" is the size of the viewable area. It is also known * as the "visible amount". * <p> ! * Note: Use <code>setBlockIncrement</code> to set the block * increment to a size slightly smaller than the view's extent. * That way, when the user jumps the knob to an adjacent position, * one or two lines of the original contents remain in view. * * @exception IllegalArgumentException if orientation is not one of VERTICAL, HORIZONTAL --- 136,146 ---- * Creates a scrollbar with the specified orientation, * value, extent, minimum, and maximum. * The "extent" is the size of the viewable area. It is also known * as the "visible amount". * <p> ! * Note: Use {@code setBlockIncrement} to set the block * increment to a size slightly smaller than the view's extent. * That way, when the user jumps the knob to an adjacent position, * one or two lines of the original contents remain in view. * * @exception IllegalArgumentException if orientation is not one of VERTICAL, HORIZONTAL
*** 202,212 **** /** * Sets the {@literal L&F} object that renders this component. * ! * @param ui the <code>ScrollBarUI</code> {@literal L&F} object * @see UIDefaults#getUI * @since 1.4 * @beaninfo * bound: true * hidden: true --- 202,212 ---- /** * Sets the {@literal L&F} object that renders this component. * ! * @param ui the {@code ScrollBarUI} {@literal L&F} object * @see UIDefaults#getUI * @since 1.4 * @beaninfo * bound: true * hidden: true
*** 229,239 **** return (ScrollBarUI)ui; } /** ! * Overrides <code>JComponent.updateUI</code>. * @see JComponent#updateUI */ public void updateUI() { setUI((ScrollBarUI)UIManager.getUI(this)); } --- 229,239 ---- return (ScrollBarUI)ui; } /** ! * Overrides {@code JComponent.updateUI}. * @see JComponent#updateUI */ public void updateUI() { setUI((ScrollBarUI)UIManager.getUI(this)); }
*** 684,697 **** listenerList.remove(AdjustmentListener.class, l); } /** ! * Returns an array of all the <code>AdjustmentListener</code>s added * to this JScrollBar with addAdjustmentListener(). * ! * @return all of the <code>AdjustmentListener</code>s added or an empty * array if no listeners have been added * @since 1.4 */ public AdjustmentListener[] getAdjustmentListeners() { return listenerList.getListeners(AdjustmentListener.class); --- 684,697 ---- listenerList.remove(AdjustmentListener.class, l); } /** ! * Returns an array of all the {@code AdjustmentListener}s added * to this JScrollBar with addAdjustmentListener(). * ! * @return all of the {@code AdjustmentListener}s added or an empty * array if no listeners have been added * @since 1.4 */ public AdjustmentListener[] getAdjustmentListeners() { return listenerList.getListeners(AdjustmentListener.class);
*** 816,826 **** /** * Returns a string representation of this JScrollBar. This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not ! * be <code>null</code>. * * @return a string representation of this JScrollBar. */ protected String paramString() { String orientationString = (orientation == HORIZONTAL ? --- 816,826 ---- /** * Returns a string representation of this JScrollBar. This method * is intended to be used only for debugging purposes, and the * content and format of the returned string may vary between * implementations. The returned string may be empty but may not ! * be {@code null}. * * @return a string representation of this JScrollBar. */ protected String paramString() { String orientationString = (orientation == HORIZONTAL ?
*** 852,872 **** return accessibleContext; } /** * This class implements accessibility support for the ! * <code>JScrollBar</code> class. It provides an implementation of the * Java Accessibility API appropriate to scroll bar user-interface * elements. * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only protected class AccessibleJScrollBar extends AccessibleJComponent implements AccessibleValue { --- 852,872 ---- return accessibleContext; } /** * This class implements accessibility support for the ! * {@code JScrollBar} class. It provides an implementation of the * Java Accessibility API appropriate to scroll bar user-interface * elements. * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans&trade; ! * has been added to the {@code java.beans} package. * Please see {@link java.beans.XMLEncoder}. */ @SuppressWarnings("serial") // Same-version serialization only protected class AccessibleJScrollBar extends AccessibleJComponent implements AccessibleValue {
< prev index next >