javax.swing.plaf.basic
protected class BasicScrollBarUI.ScrollListener extends Object implements ActionListener
| Constructor Summary | |
|---|---|
| ScrollListener()
Creates a new ScrollListener object. | |
| ScrollListener(int dir, boolean block)
Creates a new ScrollListener object using the given direction and
block.
| |
| Method Summary | |
|---|---|
| void | actionPerformed(ActionEvent e)
Called every time the timer reaches its interval.
|
| void | setDirection(int direction)
Sets the direction to scroll in.
|
| void | setScrollByBlock(boolean block)
Sets whether scrolling will be done in blocks.
|
Parameters: dir The direction to move in. block Whether movement will be in blocks.
Parameters: e The ActionEvent fired by the timer.
Parameters: direction The direction to scroll in.
Parameters: block Whether scrolling will be in blocks.