@InternalApi public class JSliderDriver extends JComponentDriver
Supports functional testing of JSlider
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 |
---|
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, 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 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–2019 AssertJ. All rights reserved.