@InternalApi public class JSliderDriver extends JComponentDriver
Supports functional testing of JSliders.
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 |
|---|
JSliderDriver(Robot robot)
Creates a new
JSliderDriver. |
| Modifier and Type | Method and Description |
|---|---|
void |
slide(JSlider slider,
int value)
Slides the knob to the requested value.
|
void |
slideToMaximum(JSlider slider)
Slides the knob to its maximum.
|
void |
slideToMinimum(JSlider slider)
Slides the knob to its minimum.
|
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 JSliderDriver(@Nonnull Robot robot)
JSliderDriver.robot - the robot to use to simulate user input.@RunsInEDT public void slideToMaximum(@Nonnull JSlider slider)
slider - the target JSlider.IllegalStateException - if the JSlider is disabled.IllegalStateException - if the JSlider is not showing on the screen.@RunsInEDT public void slideToMinimum(@Nonnull JSlider slider)
slider - the target JSlider.IllegalStateException - if the JSlider is disabled.IllegalStateException - if the JSlider is not showing on the screen.@RunsInEDT public void slide(@Nonnull JSlider slider, int value)
slider - the target JSlider.value - the requested value.IllegalStateException - if the JSlider is disabled.IllegalStateException - if the JSlider is not showing on the screen.IllegalArgumentException - if the given position is not within the JSlider bounds.Copyright © 2014 AssertJ. All rights reserved.