protected class BasicScrollBarUI.ScrollListener extends Object implements ActionListener
ScrollPane
.Constructor and Description |
---|
ScrollListener()
Constructs a
ScrollListener . |
ScrollListener(int dir,
boolean block)
Constructs a
ScrollListener . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
void |
setDirection(int direction)
Sets the direction.
|
void |
setScrollByBlock(boolean block)
Sets the scrolling by block
|
public ScrollListener()
ScrollListener
.public ScrollListener(int dir, boolean block)
ScrollListener
.dir
- directionblock
- use block incrementpublic void setDirection(int direction)
direction
- the new directionpublic void setScrollByBlock(boolean block)
block
- whether or not to scroll by blockpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the event to be processed Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait