|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.finder.ComponentFinderTemplate<T>
org.fest.swing.finder.WindowFinderTemplate<Frame>
org.fest.swing.finder.FrameFinder
public class FrameFinder
Understands a finder for
s. This class cannot be used directly, please see
Frame
.
WindowFinder
Constructor Summary | |
---|---|
protected |
FrameFinder(Class<? extends Frame> frameType)
Creates a new FrameFinder . |
protected |
FrameFinder(GenericTypeMatcher<? extends Frame> matcher)
Creates a new FrameFinder . |
protected |
FrameFinder(String frameName)
Creates a new FrameFinder . |
Method Summary | |
---|---|
protected Frame |
cast(Component c)
Casts the given Component to . |
FrameFixture |
using(Robot robot)
Finds a by name or type. |
FrameFinder |
withTimeout(long timeout)
Sets the timeout for this finder. |
FrameFinder |
withTimeout(long timeout,
TimeUnit unit)
Sets the timeout for this finder. |
Methods inherited from class org.fest.swing.finder.ComponentFinderTemplate |
---|
findComponentWith |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FrameFinder(String frameName)
FrameFinder
.
frameName
- the name of the Frame
to look for.protected FrameFinder(GenericTypeMatcher<? extends Frame> matcher)
FrameFinder
.
matcher
- specifies the search criteria to use when looking up a Frame
.protected FrameFinder(Class<? extends Frame> frameType)
FrameFinder
.
frameType
- the type of Frame
to look for.Method Detail |
---|
public FrameFinder withTimeout(long timeout)
withTimeout
in class WindowFinderTemplate<Frame>
timeout
- the number of milliseconds before stopping the search.
public FrameFinder withTimeout(long timeout, TimeUnit unit)
withTimeout
in class WindowFinderTemplate<Frame>
timeout
- the period of time the search should be performed.unit
- the time unit for timeout
.
public FrameFixture using(Robot robot)
Frame
by name or type.
using
in class WindowFinderTemplate<Frame>
robot
- contains the underlying finding to delegate the search to.
FrameFixture
managing the found Frame
.
WaitTimedOutError
- if a Frame
could not be found.protected Frame cast(Component c)
Component
to Frame
.
cast
in class ComponentFinderTemplate<Frame>
c
- the given Component
.
Component
, casted to Frame
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |