@InternalApi public class JSplitPaneDriver extends JComponentDriver
Supports functional testing of JSplitPane
s.
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 |
---|
JSplitPaneDriver(Robot robot)
Creates a new
JSplitPaneDriver . |
Modifier and Type | Method and Description |
---|---|
void |
moveDividerTo(JSplitPane splitPane,
int location)
Sets the divider position to an absolute position.
|
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisible
doResizeHeight, doResizeWidth, isResizable, move, resize
backgroundOf, checkClickAllowed, checkInEdtEnabledAndShowing, checkInEdtShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, drop, focus, focusAndWaitForFocusGain, fontOf, foregroundOf, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, pressKeyWhileRunning, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing
public JSplitPaneDriver(@Nonnull Robot robot)
JSplitPaneDriver
.robot
- the robot to use to simulate user input.@RunsInEDT public void moveDividerTo(@Nonnull JSplitPane splitPane, int location)
Since 1.2, this method respects the minimum and maximum values of the left and right components inside the given
JSplitPane
.
splitPane
- the target JSplitPane
.location
- the location to move the divider to.IllegalStateException
- if the JSplitPane
is disabled.IllegalStateException
- if the JSplitPane
is not showing on the screen.Copyright © 2014–2017 AssertJ. All rights reserved.