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
Frames:
- 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 TypeMethodDescriptionvoidDeiconifies the given.FramevoidIconifies the given.Frameprivate static PointiconifyInfo(Frame frame) voidMakes thefull size.Frameprivate static PointmaximizeInfo(Frame frame) voidNormalizes the given.Frameprivate static booleansupportsMaximize(Toolkit toolkit) private voidupdateFrameExtendedState(Frame frame, int state) Methods inherited from class org.fest.swing.driver.WindowDriver
close, moveTo, moveToBack, moveToFront, resizeHeightTo, resizeTo, resizeWidthTo, show, showMethods inherited from class org.fest.swing.driver.ContainerDriver
move, resize, resizeHeight, resizeWidthMethods 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 theFrameis not enabled.IllegalStateException- if theFrameis not showing on the screen.
-
iconifyInfo
-
deiconify
Deiconifies the given.Frame- Parameters:
frame- the givenFrame.- Throws:
IllegalStateException- if theFrameis not enabled.IllegalStateException- if theFrameis not showing on the screen.
-
normalize
Normalizes the given.Frame- Parameters:
frame- the givenFrame.- Throws:
IllegalStateException- if theFrameis not enabled.IllegalStateException- if theFrameis not showing on the screen.
-
maximize
Makes thefull size.Frame- Parameters:
frame- the targetFrame.- Throws:
IllegalStateException- if theFrameis not enabled.IllegalStateException- if theFrameis not showing on the screen.ActionFailedException- if the operating system does not support maximizing frames.
-
maximizeInfo
-
updateFrameExtendedState
-
supportsMaximize
-