public class FrameFixture extends AbstractWindowFixture<FrameFixture,Frame,FrameDriver> implements FrameLikeFixture<FrameFixture>
Frames.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY| Constructor and Description |
|---|
FrameFixture(Frame target)
Creates a new
FrameFixture. |
FrameFixture(Robot robot,
Frame target)
Creates a new
FrameFixture. |
FrameFixture(Robot robot,
String name)
Creates a new
FrameFixture. |
FrameFixture(String name)
Creates a new
FrameFixture. |
| Modifier and Type | Method and Description |
|---|---|
protected FrameDriver |
createDriver(Robot robot) |
FrameFixture |
deiconify()
Simulates a user deiconifying this fixture's
Frame. |
FrameFixture |
iconify()
Simulates a user iconifying this fixture's
Frame. |
FrameFixture |
maximize()
Simulates a user maximizing this fixture's
Frame. |
FrameFixture |
normalize()
Simulates a user normalizing this fixture's
Frame. |
cleanUp, close, moveTo, moveToBack, moveToFront, requireSize, resizeHeightTo, resizeTo, resizeWidthTo, show, show, showPopupMenu, showPopupMenuAtbutton, button, button, checkBox, checkBox, checkBox, comboBox, comboBox, comboBox, defaultDialogLookupTimeout, dialog, dialog, dialog, dialog, dialog, dialog, fileChooser, fileChooser, fileChooser, fileChooser, fileChooser, fileChooser, find, findByName, findByType, finder, label, label, label, list, list, list, menuItem, menuItem, menuItemWithPath, optionPane, optionPane, panel, panel, panel, progressBar, progressBar, progressBar, radioButton, radioButton, radioButton, scrollBar, scrollBar, scrollBar, scrollPane, scrollPane, scrollPane, slider, slider, slider, spinner, spinner, spinner, splitPane, splitPane, splitPane, tabbedPane, tabbedPane, tabbedPane, table, table, table, textBox, textBox, textBox, toggleButton, toggleButton, toggleButton, toolBar, toolBar, toolBar, tree, tree, tree, withbackground, click, click, click, doubleClick, driver, focus, font, foreground, isEnabled, myself, pressAndReleaseKey, pressAndReleaseKeys, pressKey, releaseKey, replaceDriverWith, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireShowing, requireVisible, rightClick, robot, target, targetCastedToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, moveTo, moveToBack, moveToFront, requireSize, resizeHeightTo, resizeTo, resizeWidthTopublic FrameFixture(@Nonnull Frame target)
FrameFixture. This constructor creates a new Robot containing the current AWT
hierarchy.target - the Frame to be managed by this fixture.NullPointerException - if the given frame is null.BasicRobot.robotWithCurrentAwtHierarchy()public FrameFixture(@Nonnull Robot robot, @Nonnull Frame target)
FrameFixture.robot - performs user events on the given window and verifies expected output.target - the Frame to be managed by this fixture.NullPointerException - if the given robot is null.NullPointerException - if the given frame is null.public FrameFixture(@Nonnull Robot robot, @Nullable String name)
FrameFixture.robot - performs user events on the given window and verifies expected output.name - the name of the Frame to find using the given Robot.NullPointerException - if the given robot is null.ComponentLookupException - if a Frame having a matching name could not be found.ComponentLookupException - if more than one Frame having a matching name is found.public FrameFixture(@Nullable String name)
FrameFixture. This constructor creates a new Robot containing the current AWT
hierarchy.name - the name of the Frame to find.ComponentLookupException - if a Frame having a matching name could not be found.ComponentLookupException - if more than one Frame having a matching name is found.@Nonnull protected FrameDriver createDriver(@Nonnull Robot robot)
createDriver in class AbstractComponentFixture<FrameFixture,Frame,FrameDriver>@Nonnull public FrameFixture iconify()
Frame.iconify in interface FrameLikeFixture<FrameFixture>@Nonnull public FrameFixture deiconify()
Frame.deiconify in interface FrameLikeFixture<FrameFixture>@Nonnull public FrameFixture maximize()
Frame.maximize in interface FrameLikeFixture<FrameFixture>ActionFailedException - if the operating system does not support maximizing frames.@Nonnull public FrameFixture normalize()
Frame.normalize in interface FrameLikeFixture<FrameFixture>Copyright © 2014 AssertJ. All rights reserved.