public class JSliderDriver extends JComponentDriver
JSliders:
org.fest.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, scrollToVisiblemove, resize, resizeHeight, resizeWidthassertIsEnabledAndShowing, 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, waitForShowingpublic JSliderDriver(Robot robot)
JSliderDriver.robot - the robot to use to simulate user input.@RunsInEDT public void slideToMaximum(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(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(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 © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.