|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.JComponentDriver
org.fest.swing.driver.JScrollBarDriver
public class JScrollBarDriver
Understands functional testing of s:
JScrollBar
org.fest.swing.fixture in your tests.
| Field Summary |
|---|
| Fields inherited from class org.fest.swing.driver.ComponentDriver |
|---|
robot |
| Constructor Summary | |
|---|---|
JScrollBarDriver(Robot robot)
Creates a new JScrollBarDriver. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.fest.swing.driver.JComponentDriver |
|---|
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisible |
| Methods inherited from class org.fest.swing.driver.ContainerDriver |
|---|
move, resize, resizeHeight, resizeWidth |
| Methods inherited from class org.fest.swing.driver.ComponentDriver |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JScrollBarDriver(Robot robot)
JScrollBarDriver.
robot - the robot to use to simulate user input.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||