public class JScrollBarDriver extends JComponentDriver
JScrollBar
s:
org.fest.swing.fixture
in your tests.robot
Constructor and Description |
---|
JScrollBarDriver(Robot robot)
Creates a new
JScrollBarDriver . |
Modifier and Type | Method and Description |
---|---|
void |
requireValue(JScrollBar scrollBar,
int value)
Asserts that the value of the
is equal to the given one. |
void |
scrollBlockDown(JScrollBar scrollBar)
Scrolls down (or right) one block (usually a page).
|
void |
scrollBlockDown(JScrollBar scrollBar,
int times)
Scrolls down (or right) one block (usually a page,) the given number of times.
|
void |
scrollBlockUp(JScrollBar scrollBar)
Scrolls up (or left) one block (usually a page).
|
void |
scrollBlockUp(JScrollBar scrollBar,
int times)
Scrolls up (or left) one block (usually a page,) the given number of times.
|
void |
scrollTo(JScrollBar scrollBar,
int position)
Scrolls to the given position.
|
void |
scrollToMaximum(JScrollBar scrollBar)
Scrolls to the maximum position of the given
. |
void |
scrollToMinimum(JScrollBar scrollBar)
Scrolls to the minimum position of the given
. |
void |
scrollUnitDown(JScrollBar scrollBar)
Scrolls down (or right) one unit (usually a line).
|
void |
scrollUnitDown(JScrollBar scrollBar,
int times)
Scrolls down (or right) one unit (usually a line,) the given number of times.
|
void |
scrollUnitUp(JScrollBar scrollBar)
Scrolls up (or left) one unit (usually a line).
|
void |
scrollUnitUp(JScrollBar scrollBar,
int times)
Scrolls up (or left) one unit (usually a line,) the given number of times.
|
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisible
move, resize, resizeHeight, resizeWidth
assertIsEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing
public JScrollBarDriver(Robot robot)
JScrollBarDriver
.robot
- the robot to use to simulate user input.public void scrollUnitUp(JScrollBar scrollBar)
scrollBar
- the target JScrollBar
.public void scrollUnitUp(JScrollBar scrollBar, int times)
scrollBar
- the target JScrollBar
.times
- the number of times to scroll up one unit.IllegalArgumentException
- if times
is less than or equal to zero.IllegalStateException
- if the JScrollBar
is disabled.IllegalStateException
- if the JScrollBar
is not showing on the screen.public void scrollUnitDown(JScrollBar scrollBar)
scrollBar
- the target JScrollBar
.public void scrollUnitDown(JScrollBar scrollBar, int times)
scrollBar
- the target JScrollBar
.times
- the number of times to scroll down one unit.IllegalArgumentException
- if times
is less than or equal to zero.IllegalStateException
- if the JScrollBar
is disabled.IllegalStateException
- if the JScrollBar
is not showing on the screen.@RunsInEDT public void scrollBlockUp(JScrollBar scrollBar)
scrollBar
- the target JScrollBar
.@RunsInEDT public void scrollBlockUp(JScrollBar scrollBar, int times)
scrollBar
- the target JScrollBar
.times
- the number of times to scroll up one block.IllegalArgumentException
- if times
is less than or equal to zero.IllegalStateException
- if the JScrollBar
is disabled.IllegalStateException
- if the JScrollBar
is not showing on the screen.@RunsInEDT public void scrollBlockDown(JScrollBar scrollBar)
scrollBar
- the target JScrollBar
.@RunsInEDT public void scrollBlockDown(JScrollBar scrollBar, int times)
scrollBar
- the target JScrollBar
.times
- the number of times to scroll down one block.IllegalArgumentException
- if times
is less than or equal to zero.IllegalStateException
- if the JScrollBar
is disabled.IllegalStateException
- if the JScrollBar
is not showing on the screen.@RunsInEDT public void scrollToMaximum(JScrollBar scrollBar)
JScrollBar
.scrollBar
- the target JScrollBar
.IllegalStateException
- if the JScrollBar
is disabled.IllegalStateException
- if the JScrollBar
is not showing on the screen.@RunsInEDT public void scrollToMinimum(JScrollBar scrollBar)
JScrollBar
.scrollBar
- the target JScrollBar
.IllegalStateException
- if the JScrollBar
is disabled.IllegalStateException
- if the JScrollBar
is not showing on the screen.@RunsInEDT public void scrollTo(JScrollBar scrollBar, int position)
scrollBar
- the target JScrollBar
.position
- the position to scroll to.IllegalStateException
- if the JScrollBar
is disabled.IllegalStateException
- if the JScrollBar
is not showing on the screen.IllegalArgumentException
- if the given position is not within the JScrollBar
bounds.@RunsInEDT public void requireValue(JScrollBar scrollBar, int value)
JScrollBar
is equal to the given one.scrollBar
- the target JScrollBar
.value
- the expected value.AssertionError
- if the value of the JScrollBar
is not equal to the given one.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.