equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
166 * attribute: containerDelegate getViewport |
166 * attribute: containerDelegate getViewport |
167 * description: A specialized container that manages a viewport, optional scrollbars and headers |
167 * description: A specialized container that manages a viewport, optional scrollbars and headers |
168 * |
168 * |
169 * @author Hans Muller |
169 * @author Hans Muller |
170 */ |
170 */ |
|
171 @SuppressWarnings("serial") // Same-version serialization only |
171 public class JScrollPane extends JComponent implements ScrollPaneConstants, Accessible |
172 public class JScrollPane extends JComponent implements ScrollPaneConstants, Accessible |
172 { |
173 { |
173 private Border viewportBorder; |
174 private Border viewportBorder; |
174 |
175 |
175 /** |
176 /** |
683 * |
684 * |
684 * @see Scrollable |
685 * @see Scrollable |
685 * @see JScrollPane#createVerticalScrollBar |
686 * @see JScrollPane#createVerticalScrollBar |
686 * @see JScrollPane#createHorizontalScrollBar |
687 * @see JScrollPane#createHorizontalScrollBar |
687 */ |
688 */ |
|
689 @SuppressWarnings("serial") // Same-version serialization only |
688 protected class ScrollBar extends JScrollBar implements UIResource |
690 protected class ScrollBar extends JScrollBar implements UIResource |
689 { |
691 { |
690 /** |
692 /** |
691 * Set to true when the unit increment has been explicitly set. |
693 * Set to true when the unit increment has been explicitly set. |
692 * If this is false the viewport's view is obtained and if it |
694 * If this is false the viewport's view is obtained and if it |
1439 * the same version of Swing. As of 1.4, support for long term storage |
1441 * the same version of Swing. As of 1.4, support for long term storage |
1440 * of all JavaBeans™ |
1442 * of all JavaBeans™ |
1441 * has been added to the <code>java.beans</code> package. |
1443 * has been added to the <code>java.beans</code> package. |
1442 * Please see {@link java.beans.XMLEncoder}. |
1444 * Please see {@link java.beans.XMLEncoder}. |
1443 */ |
1445 */ |
|
1446 @SuppressWarnings("serial") // Same-version serialization only |
1444 protected class AccessibleJScrollPane extends AccessibleJComponent |
1447 protected class AccessibleJScrollPane extends AccessibleJComponent |
1445 implements ChangeListener, PropertyChangeListener { |
1448 implements ChangeListener, PropertyChangeListener { |
1446 |
1449 |
1447 protected JViewport viewPort = null; |
1450 protected JViewport viewPort = null; |
1448 |
1451 |