< prev index next >

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

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


  47  * scrollbar represents the end of the displayable contents, or 100%
  48  * of the contents. The start of the scrollbar is the beginning of the
  49  * displayable contents, or 0%. The position of the knob within
  50  * those bounds then translates to the corresponding percentage of
  51  * the displayable contents.
  52  * <p>
  53  * Typically, as the position of the knob in the scrollbar changes
  54  * a corresponding change is made to the position of the JViewport on
  55  * the underlying view, changing the contents of the JViewport.
  56  * <p>
  57  * <strong>Warning:</strong> Swing is not thread safe. For more
  58  * information see <a
  59  * href="package-summary.html#threading">Swing's Threading
  60  * Policy</a>.
  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 JScrollPane
  72  *
  73  * @author David Kloba
  74  * @since 1.2
  75  */
  76 @JavaBean(defaultProperty = "UI", description = "A component that helps determine the visible content range of an area.")
  77 @SwingContainer(false)
  78 @SuppressWarnings("serial") // Same-version serialization only
  79 public class JScrollBar extends JComponent implements Adjustable, Accessible
  80 {
  81     /**
  82      * @see #getUIClassID
  83      * @see #readObject
  84      */
  85     private static final String uiClassID = "ScrollBarUI";
  86 
  87     /**


 830      */
 831     @BeanProperty(bound = false)
 832     public AccessibleContext getAccessibleContext() {
 833         if (accessibleContext == null) {
 834             accessibleContext = new AccessibleJScrollBar();
 835         }
 836         return accessibleContext;
 837     }
 838 
 839     /**
 840      * This class implements accessibility support for the
 841      * <code>JScrollBar</code> class.  It provides an implementation of the
 842      * Java Accessibility API appropriate to scroll bar user-interface
 843      * elements.
 844      * <p>
 845      * <strong>Warning:</strong>
 846      * Serialized objects of this class will not be compatible with
 847      * future Swing releases. The current serialization support is
 848      * appropriate for short term storage or RMI between applications running
 849      * the same version of Swing.  As of 1.4, support for long term storage
 850      * of all JavaBeans&trade;
 851      * has been added to the <code>java.beans</code> package.
 852      * Please see {@link java.beans.XMLEncoder}.
 853      */
 854     @SuppressWarnings("serial") // Same-version serialization only
 855     protected class AccessibleJScrollBar extends AccessibleJComponent
 856         implements AccessibleValue {
 857 
 858         /**
 859          * Get the state set of this object.
 860          *
 861          * @return an instance of AccessibleState containing the current state
 862          * of the object
 863          * @see AccessibleState
 864          */
 865         public AccessibleStateSet getAccessibleStateSet() {
 866             AccessibleStateSet states = super.getAccessibleStateSet();
 867             if (getValueIsAdjusting()) {
 868                 states.add(AccessibleState.BUSY);
 869             }
 870             if (getOrientation() == VERTICAL) {




  47  * scrollbar represents the end of the displayable contents, or 100%
  48  * of the contents. The start of the scrollbar is the beginning of the
  49  * displayable contents, or 0%. The position of the knob within
  50  * those bounds then translates to the corresponding percentage of
  51  * the displayable contents.
  52  * <p>
  53  * Typically, as the position of the knob in the scrollbar changes
  54  * a corresponding change is made to the position of the JViewport on
  55  * the underlying view, changing the contents of the JViewport.
  56  * <p>
  57  * <strong>Warning:</strong> Swing is not thread safe. For more
  58  * information see <a
  59  * href="package-summary.html#threading">Swing's Threading
  60  * Policy</a>.
  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 JScrollPane
  72  *
  73  * @author David Kloba
  74  * @since 1.2
  75  */
  76 @JavaBean(defaultProperty = "UI", description = "A component that helps determine the visible content range of an area.")
  77 @SwingContainer(false)
  78 @SuppressWarnings("serial") // Same-version serialization only
  79 public class JScrollBar extends JComponent implements Adjustable, Accessible
  80 {
  81     /**
  82      * @see #getUIClassID
  83      * @see #readObject
  84      */
  85     private static final String uiClassID = "ScrollBarUI";
  86 
  87     /**


 830      */
 831     @BeanProperty(bound = false)
 832     public AccessibleContext getAccessibleContext() {
 833         if (accessibleContext == null) {
 834             accessibleContext = new AccessibleJScrollBar();
 835         }
 836         return accessibleContext;
 837     }
 838 
 839     /**
 840      * This class implements accessibility support for the
 841      * <code>JScrollBar</code> class.  It provides an implementation of the
 842      * Java Accessibility API appropriate to scroll bar user-interface
 843      * elements.
 844      * <p>
 845      * <strong>Warning:</strong>
 846      * Serialized objects of this class will not be compatible with
 847      * future Swing releases. The current serialization support is
 848      * appropriate for short term storage or RMI between applications running
 849      * the same version of Swing.  As of 1.4, support for long term storage
 850      * of all JavaBeans
 851      * has been added to the <code>java.beans</code> package.
 852      * Please see {@link java.beans.XMLEncoder}.
 853      */
 854     @SuppressWarnings("serial") // Same-version serialization only
 855     protected class AccessibleJScrollBar extends AccessibleJComponent
 856         implements AccessibleValue {
 857 
 858         /**
 859          * Get the state set of this object.
 860          *
 861          * @return an instance of AccessibleState containing the current state
 862          * of the object
 863          * @see AccessibleState
 864          */
 865         public AccessibleStateSet getAccessibleStateSet() {
 866             AccessibleStateSet states = super.getAccessibleStateSet();
 867             if (getValueIsAdjusting()) {
 868                 states.add(AccessibleState.BUSY);
 869             }
 870             if (getOrientation() == VERTICAL) {


< prev index next >