|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.JComponentDriver
org.fest.swing.driver.JInternalFrameDriver
public class JInternalFrameDriver
Understands functional testing of
s:
JInternalFrame
org.fest.swing.fixture
in your tests.
Field Summary |
---|
Fields inherited from class org.fest.swing.driver.ComponentDriver |
---|
robot |
Constructor Summary | |
---|---|
JInternalFrameDriver(Robot robot)
Creates a new JInternalFrameDriver . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.fest.swing.driver.JComponentDriver |
---|
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisible |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JInternalFrameDriver(Robot robot)
JInternalFrameDriver
.
robot
- the robot to use to simulate user input.Method Detail |
---|
@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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |