|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.awt.Component
![]()
![]()
![]()
java.awt.Container
![]()
![]()
![]()
javax.swing.JComponent
![]()
![]()
![]()
javax.swing.JScrollBar
![]()
![]()
![]()
javax.swing.JScrollPane.ScrollBar
, ImageObserver
, MenuContainer
, Serializable
, Accessible
, UIResource


protected class JScrollPane.ScrollBar


By default JScrollPane creates scrollbars
that are instances
of this class. Scrollbar overrides the
getUnitIncrement and getBlockIncrement
methods so that, if the viewport's view is a Scrollable,
the view is asked to compute these values. Unless
the unit/block increment have been explicitly set.
Warning:
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 JavaBeansTM
has been added to the java.beans package.
Please see XMLEncoder
.
Scrollable
,
JScrollPane.createVerticalScrollBar()
,
JScrollPane.createHorizontalScrollBar()
,
Serialized Form| Nested Class Summary |
|---|
Nested classes/interfaces inherited from class javax.swing.JScrollBar ![]() |
|---|
JScrollBar.AccessibleJScrollBar |
Nested classes/interfaces inherited from class javax.swing.JComponent ![]() |
|---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container ![]() |
|---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component ![]() |
|---|
Component.AccessibleAWTComponent |
| Field Summary |
|---|
Fields inherited from class javax.swing.JScrollBar ![]() |
|---|
blockIncrement |
Fields inherited from class javax.swing.JComponent ![]() |
|---|
accessibleContext |
Fields inherited from class java.awt.Component ![]() |
|---|
BOTTOM_ALIGNMENT |
Fields inherited from interface java.awt.Adjustable ![]() |
|---|
HORIZONTAL |
Fields inherited from interface java.awt.image.ImageObserver ![]() |
|---|
ABORT |
| Constructor Summary | |
|---|---|
JScrollPane.ScrollBar
Creates a scrollbar with the specified orientation. |
|
| Method Summary | |
|---|---|
int |
getBlockIncrement
Computes the block increment for scrolling if the viewport's view is a Scrollable object. |
int |
getUnitIncrement
Computes the unit increment for scrolling if the viewport's view is a Scrollable object. |
void |
setBlockIncrement
Messages super to set the value, and resets the blockIncrementSet instance variable to true. |
void |
setUnitIncrement
Messages super to set the value, and resets the unitIncrementSet instance variable to true. |
Methods inherited from class javax.swing.JScrollBar ![]() |
|---|
addAdjustmentListener |