Package org.fest.swing.driver
Class JScrollPaneDriver
java.lang.Object
org.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.JComponentDriver
org.fest.swing.driver.JScrollPaneDriver
Understands functional testing of
JScrollPane
s:
- user input simulation
- state verification
- property value query
org.fest.swing.fixture
in your tests.-
Field Summary
Fields inherited from class org.fest.swing.driver.ComponentDriver
robot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static JScrollBar
horizontalScrollBar
(JScrollPane scrollPane) horizontalScrollBarIn
(JScrollPane scrollPane) Returns the horizontal
in the givenJScrollBar
.JScrollPane
private static JScrollBar
verticalScrollBar
(JScrollPane scrollPane) verticalScrollBarIn
(JScrollPane scrollPane) Returns the vertical
in the givenJScrollBar
.JScrollPane
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
-
Constructor Details
-
JScrollPaneDriver
Creates a newJScrollPaneDriver
.- Parameters:
robot
- the robot the robot to use to simulate user input.
-
-
Method Details
-
horizontalScrollBarIn
Returns the horizontal
in the givenJScrollBar
.JScrollPane
- Parameters:
scrollPane
- the givenJScrollBar
.- Returns:
- the horizontal scroll bar in the given
JScrollBar
.
-
horizontalScrollBar
-
verticalScrollBarIn
Returns the vertical
in the givenJScrollBar
.JScrollPane
- Parameters:
scrollPane
- the givenJScrollBar
.- Returns:
- the vertical scroll bar in the given
JScrollBar
.
-
verticalScrollBar
-