public class JInternalFrameDriver extends JComponentDriver
JInternalFrame
s:
org.fest.swing.fixture
in your tests.robot
Constructor and Description |
---|
JInternalFrameDriver(Robot robot)
Creates a new
JInternalFrameDriver . |
Modifier and Type | Method and Description |
---|---|
void |
close(JInternalFrame internalFrame)
Closes the given
. |
void |
deiconify(JInternalFrame internalFrame)
De-iconifies the given
. |
void |
iconify(JInternalFrame internalFrame)
Iconifies the given
. |
void |
maximize(JInternalFrame internalFrame)
Maximizes the given
, deconifying it first if it is iconified. |
void |
moveTo(JInternalFrame internalFrame,
Point where)
Moves the
to the given location. |
void |
moveToBack(JInternalFrame internalFrame)
Brings the given
to the back. |
void |
moveToFront(JInternalFrame internalFrame)
Brings the given
to the front. |
void |
normalize(JInternalFrame internalFrame)
Normalizes the given
, deconifying it first if it is iconified. |
void |
resizeHeightTo(JInternalFrame w,
int height)
Resizes the
vertically. |
void |
resizeTo(JInternalFrame internalFrame,
Dimension size)
Resizes the
to the given size. |
void |
resizeWidthTo(JInternalFrame internalFrame,
int width)
Resizes the
horizontally. |
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisible
move, resize, resizeHeight, resizeWidth
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
public JInternalFrameDriver(Robot robot)
JInternalFrameDriver
.robot
- the robot to use to simulate user input.@RunsInEDT public void moveToFront(JInternalFrame internalFrame)
JInternalFrame
to the front.internalFrame
- the target JInternalFrame
.@RunsInEDT public void moveToBack(JInternalFrame internalFrame)
JInternalFrame
to the back.internalFrame
- the target JInternalFrame
.@RunsInEDT public void maximize(JInternalFrame internalFrame)
JInternalFrame
, deconifying it first if it is iconified.internalFrame
- the target JInternalFrame
.IllegalStateException
- if the JInternalFrame
is not maximizable.IllegalStateException
- if the JInternalFrame
is not showing on the screen.ActionFailedException
- if the JInternalFrame
vetoes the action.@RunsInEDT public void normalize(JInternalFrame internalFrame)
JInternalFrame
, deconifying it first if it is iconified.internalFrame
- the target JInternalFrame
.IllegalStateException
- if the JInternalFrame
is not showing on the screen.ActionFailedException
- if the JInternalFrame
vetoes the action.@RunsInEDT public void iconify(JInternalFrame internalFrame)
JInternalFrame
.internalFrame
- the target JInternalFrame
.IllegalStateException
- if the JInternalFrame
is not showing on the screen.IllegalStateException
- if the JInternalFrame
is not iconifiable.ActionFailedException
- if the JInternalFrame
vetoes the action.@RunsInEDT public void deiconify(JInternalFrame internalFrame)
JInternalFrame
.internalFrame
- the target JInternalFrame
.IllegalStateException
- if the JInternalFrame
is not showing on the screen.ActionFailedException
- if the JInternalFrame
vetoes the action.@RunsInEDT public void resizeWidthTo(JInternalFrame internalFrame, int width)
JInternalFrame
horizontally.internalFrame
- the target JInternalFrame
.width
- the width that the JInternalFrame
should have after being resized.IllegalStateException
- if the JInternalFrame
is not showing on the screen.IllegalStateException
- if the JInternalFrame
is not resizable by the user.@RunsInEDT public void resizeHeightTo(JInternalFrame w, int height)
JInternalFrame
vertically.w
- the target JInternalFrame
.height
- the height that the JInternalFrame
should have after being resized.IllegalStateException
- if the JInternalFrame
is not showing on the screen.IllegalStateException
- if the JInternalFrame
is not resizable by the user.@RunsInEDT public void resizeTo(JInternalFrame internalFrame, Dimension size)
JInternalFrame
to the given size.internalFrame
- the target JInternalFrame
.size
- the size to resize the JInternalFrame
to.IllegalStateException
- if the JInternalFrame
is not showing on the screen.IllegalStateException
- if the JInternalFrame
is not resizable by the user.@RunsInEDT public void moveTo(JInternalFrame internalFrame, Point where)
JInternalFrame
to the given location.internalFrame
- the target JInternalFrame
.where
- the location to move the JInternalFrame
to.IllegalStateException
- if the JInternalFrame
is not showing on the screen.@RunsInEDT public void close(JInternalFrame internalFrame)
JInternalFrame
.internalFrame
- the target JInternalFrame
.IllegalStateException
- if the JInternalFrame
is not showing on the screen.IllegalStateException
- if the JInternalFrame
is not closable.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.