public class JButtonFixture extends AbstractButtonFixture<JButtonFixture,JButton>
JButton
s.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY
Constructor and Description |
---|
JButtonFixture(Robot robot,
JButton target)
Creates a new
JButtonFixture . |
JButtonFixture(Robot robot,
String buttonName)
Creates a new
JButtonFixture . |
createDriver, requireText, requireText, text
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 JButtonFixture(@Nonnull Robot robot, @Nonnull JButton target)
JButtonFixture
.target
- the JButton
to be managed by this fixture.robot
- performs simulation of user events on the given JButton
.NullPointerException
- if robot
is null
.NullPointerException
- if target
is null
.public JButtonFixture(@Nonnull Robot robot, @Nullable String buttonName)
JButtonFixture
.robot
- performs simulation of user events on a JButton
.buttonName
- the name of the JButton
to find using the given RobotFixture
.NullPointerException
- if robot
is null
.ComponentLookupException
- if a matching JButton
could not be found.ComponentLookupException
- if more than one matching JButton
is found.Copyright © 2014–2019 AssertJ. All rights reserved.