public class JSliderFixture extends AbstractJPopupMenuInvokerFixture<JSliderFixture,JSlider,JSliderDriver>
JSlider
s.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY
Constructor and Description |
---|
JSliderFixture(Robot robot,
JSlider target)
Creates a new
JSliderFixture . |
JSliderFixture(Robot robot,
String sliderName)
Creates a new
JSliderFixture . |
Modifier and Type | Method and Description |
---|---|
protected JSliderDriver |
createDriver(Robot robot) |
JSliderFixture |
slideTo(int value)
Simulates a user sliding this fixture's
JSlider to the given value. |
JSliderFixture |
slideToMaximum()
Simulates a user sliding this fixture's
JSlider to its maximum value. |
JSliderFixture |
slideToMinimum()
Simulates a user sliding this fixture's
JSlider to its minimum value. |
showPopupMenu, showPopupMenuAt
clientProperty, requireToolTip, requireToolTip
background, click, click, click, doubleClick, driver, drop, equals, focus, font, foreground, hashCode, isEnabled, myself, pressAndReleaseKey, pressAndReleaseKeys, pressKey, pressKeyWhileRunning, releaseKey, replaceDriverWith, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireShowing, requireVisible, rightClick, robot, target, targetCastedTo
public JSliderFixture(@Nonnull Robot robot, @Nonnull JSlider target)
JSliderFixture
.robot
- performs simulation of user events on the given JSlider
.target
- the JSlider
to be managed JSlider
by this fixture.NullPointerException
- if robot
is null
.NullPointerException
- if target
is null
.public JSliderFixture(@Nonnull Robot robot, @Nullable String sliderName)
JSliderFixture
.robot
- performs simulation of user events on a JSlider
.sliderName
- the name of the JSlider
to find using the given Robot
.NullPointerException
- if robot
is null
.ComponentLookupException
- if a matching JSlider
could not be found.ComponentLookupException
- if more than one matching JSlider
is found.@Nonnull protected JSliderDriver createDriver(@Nonnull Robot robot)
createDriver
in class AbstractComponentFixture<JSliderFixture,JSlider,JSliderDriver>
@Nonnull public JSliderFixture slideTo(int value)
JSlider
to the given value.value
- the value to slide the JSlider
to.IllegalStateException
- if this fixture's JSlider
is disabled.IllegalStateException
- if this fixture's JSlider
is not showing on the screen.IllegalArgumentException
- if the given position is not within the JSlider
bounds.@Nonnull public JSliderFixture slideToMaximum()
JSlider
to its maximum value.IllegalStateException
- if this fixture's JSlider
is disabled.IllegalStateException
- if this fixture's JSlider
is not showing on the screen.@Nonnull public JSliderFixture slideToMinimum()
JSlider
to its minimum value.IllegalStateException
- if this fixture's JSlider
is disabled.IllegalStateException
- if this fixture's JSlider
is not showing on the screen.Copyright © 2014–2019 AssertJ. All rights reserved.