|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.fixture.Containers
public final class Containers
Understands utility methods related to
s.
Container
Field Summary | |
---|---|
static String |
CREATED_FRAME_NAME
Name of the JFrame s created by this class. |
Method Summary | |
---|---|
static FrameFixture |
frameFixtureFor(Container contentPane)
Creates a new and uses the given as its content pane. |
static JFrame |
frameFor(Container contentPane)
Creates a new and uses the given as its content pane. |
static FrameFixture |
showInFrame(Container contentPane)
Creates a new and uses the given as its content pane. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CREATED_FRAME_NAME
JFrame
s created by this class.
Method Detail |
---|
@RunsInEDT public static FrameFixture showInFrame(Container contentPane)
JFrame
and uses the given Container
as its content pane.
The created JFrame
is wrapped and displayed by a FrameFixture
.
Note:This method creates a new
. When using this method, please do not
create any additional instances of Robot
Robot
. Only one instance of Robot
can exist per
test class.
contentPane
- the Container
to use as content pane for the JFrame
to create.
FrameFixture
.frameFor(Container)
@RunsInEDT public static FrameFixture frameFixtureFor(Container contentPane)
JFrame
and uses the given Container
as its content pane.
The created JFrame
is wrapped by a FrameFixture
. Unlike
showInFrame(Container)
, this method does not display the created
JFrame
.
Note:This method creates a new
. When using this method, please do not
create any additional instances of Robot
Robot
. Only one instance of Robot
can exist per
test class.
contentPane
- the Container
to use as content pane for the JFrame
to create.
FrameFixture
.frameFor(Container)
@RunsInEDT public static JFrame frameFor(Container contentPane)
JFrame
and uses the given Container
as its content pane.
The created JFrame
has the name specified by CREATED_FRAME_NAME
. This method
is executed in the Event Dispatch Thread (EDT.)
contentPane
- the Container
to use as content pane for the JFrame
to create.
JFrame
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |