@InternalApi public class JScrollBarDriver extends JComponentDriver
Supports functional testing of JScrollBars.
Note: This class is intended for internal use only. Please use the classes in the package
org.assertj.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
JScrollBar 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
JScrollBar. |
void |
scrollToMinimum(JScrollBar scrollBar)
Scrolls to the minimum position of the given
JScrollBar. |
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, scrollToVisibledoResizeHeight, doResizeWidth, isResizable, move, resizebackgroundOf, checkInEdtEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, fontOf, foregroundOf, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowingpublic JScrollBarDriver(@Nonnull Robot robot)
JScrollBarDriver.robot - the robot to use to simulate user input.public void scrollUnitUp(@Nonnull JScrollBar scrollBar)
scrollBar - the target JScrollBar.public void scrollUnitUp(@Nonnull 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(@Nonnull JScrollBar scrollBar)
scrollBar - the target JScrollBar.public void scrollUnitDown(@Nonnull 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(@Nonnull JScrollBar scrollBar)
scrollBar - the target JScrollBar.@RunsInEDT public void scrollBlockUp(@Nonnull 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(@Nonnull JScrollBar scrollBar)
scrollBar - the target JScrollBar.@RunsInEDT public void scrollBlockDown(@Nonnull 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(@Nonnull 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(@Nonnull 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(@Nonnull 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(@Nonnull 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 © 2014 AssertJ. All rights reserved.