org.fest.swing.driver
Class JSplitPaneDriver
java.lang.Object
org.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.JComponentDriver
org.fest.swing.driver.JSplitPaneDriver
public class JSplitPaneDriver
- extends JComponentDriver
Understands functional testing of JSplitPane
s:
- user input simulation
- state verification
- property value query
This class is intended for internal use only. Please use the classes in the package
org.fest.swing.fixture
in your tests.
- Author:
- Alex Ruiz, Yvonne Wang
Method Summary |
void |
moveDividerTo(JSplitPane splitPane,
int location)
Sets the divider position to an absolute position. |
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 |
JSplitPaneDriver
public JSplitPaneDriver(Robot robot)
- Creates a new
JSplitPaneDriver
.
- Parameters:
robot
- the robot to use to simulate user input.
moveDividerTo
@RunsInEDT
public void moveDividerTo(JSplitPane splitPane,
int location)
- Sets the divider position to an absolute position.
Since 1.2, this method respects the minimum and maximum values of the left and right components inside the given
JSplitPane
.
- Parameters:
splitPane
- the target JSplitPane
.location
- the location to move the divider to.
- Throws:
IllegalStateException
- if the JSplitPane
is disabled.
IllegalStateException
- if the JSplitPane
is not showing on the screen.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.