Package org.fest.swing.driver
Class FrameDriver
java.lang.Object
org.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.WindowDriver
org.fest.swing.driver.FrameDriver
Understands functional testing of
Frame
s:
- user input simulation
- state verification
- property value query
org.fest.swing.fixture
in your tests.-
Field Summary
Fields inherited from class org.fest.swing.driver.ComponentDriver
robot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deiconifies the given
.Frame
void
Iconifies the given
.Frame
private static Point
iconifyInfo
(Frame frame) void
Makes the
full size.Frame
private static Point
maximizeInfo
(Frame frame) void
Normalizes the given
.Frame
private static boolean
supportsMaximize
(Toolkit toolkit) private void
updateFrameExtendedState
(Frame frame, int state) Methods inherited from class org.fest.swing.driver.WindowDriver
close, moveTo, moveToBack, moveToFront, resizeHeightTo, resizeTo, resizeWidthTo, show, show
Methods inherited from class org.fest.swing.driver.ContainerDriver
move, resize, resizeHeight, resizeWidth
Methods inherited from class org.fest.swing.driver.ComponentDriver
assertIsEnabledAndShowing, 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, waitForShowing
-
Constructor Details
-
FrameDriver
Creates a newFrameDriver
.- Parameters:
robot
- the robot to use to simulate user input.
-
-
Method Details
-
iconify
Iconifies the given
.Frame
- Parameters:
frame
- the givenFrame
.- Throws:
IllegalStateException
- if theFrame
is not enabled.IllegalStateException
- if theFrame
is not showing on the screen.
-
iconifyInfo
-
deiconify
Deiconifies the given
.Frame
- Parameters:
frame
- the givenFrame
.- Throws:
IllegalStateException
- if theFrame
is not enabled.IllegalStateException
- if theFrame
is not showing on the screen.
-
normalize
Normalizes the given
.Frame
- Parameters:
frame
- the givenFrame
.- Throws:
IllegalStateException
- if theFrame
is not enabled.IllegalStateException
- if theFrame
is not showing on the screen.
-
maximize
Makes the
full size.Frame
- Parameters:
frame
- the targetFrame
.- Throws:
IllegalStateException
- if theFrame
is not enabled.IllegalStateException
- if theFrame
is not showing on the screen.ActionFailedException
- if the operating system does not support maximizing frames.
-
maximizeInfo
-
updateFrameExtendedState
-
supportsMaximize
-