|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.basic.BasicScrollBarUI.ScrollListener
protected class BasicScrollBarUI.ScrollListener
A helper class that listens for events from the timer that is used to move the thumb.
Constructor Summary | |
---|---|
BasicScrollBarUI.ScrollListener()
Creates a new ScrollListener object. |
|
BasicScrollBarUI.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicScrollBarUI.ScrollListener()
public BasicScrollBarUI.ScrollListener(int dir, boolean block)
dir
- The direction to move in.block
- Whether movement will be in blocks.Method Detail |
---|
public void setDirection(int direction)
direction
- The direction to scroll in.public void setScrollByBlock(boolean block)
block
- Whether scrolling will be in blocks.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- The ActionEvent fired by the timer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |