|
||||||||||
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<T>
T
- the type of window this finder can search.public abstract class WindowFinderTemplate<T extends Window>
Understands a template for
finders.
Window
Constructor Summary | |
---|---|
protected |
WindowFinderTemplate(Class<? extends T> windowType)
Creates a new WindowFinderTemplate . |
protected |
WindowFinderTemplate(GenericTypeMatcher<? extends T> matcher)
Creates a new WindowFinderTemplate . |
protected |
WindowFinderTemplate(String windowName,
Class<? extends T> windowType)
Creates a new WindowFinderTemplate . |
Method Summary | |
---|---|
abstract WindowFixture<T> |
using(Robot robot)
Finds a window by name or type using the given robot. |
protected WindowFinderTemplate<T> |
withTimeout(long timeout)
Sets the timeout for this finder. |
protected WindowFinderTemplate<T> |
withTimeout(long timeout,
TimeUnit unit)
Sets the timeout for this finder. |
Methods inherited from class org.fest.swing.finder.ComponentFinderTemplate |
---|
cast, findComponentWith |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected WindowFinderTemplate(String windowName, Class<? extends T> windowType)
WindowFinderTemplate
.
windowName
- the name of the Window
to find.windowType
- the type of the Window
to find.protected WindowFinderTemplate(GenericTypeMatcher<? extends T> matcher)
WindowFinderTemplate
.
matcher
- specifies the search criteria to use when looking up a Window
.protected WindowFinderTemplate(Class<? extends T> windowType)
WindowFinderTemplate
.
windowType
- the type of the Window
to find.Method Detail |
---|
protected WindowFinderTemplate<T> withTimeout(long timeout)
Window
to find should be found within the given time
period.
withTimeout
in class ComponentFinderTemplate<T extends Window>
timeout
- the number of milliseconds before stopping the search.
IllegalArgumentException
- if the timeout is a negative number.protected WindowFinderTemplate<T> withTimeout(long timeout, TimeUnit unit)
Window
to find should be found within the given time
period.
withTimeout
in class ComponentFinderTemplate<T extends Window>
timeout
- the period of time the search should be performed.unit
- the time unit for timeout
.
NullPointerException
- if the time unit is null
.
IllegalArgumentException
- if the timeout is a negative number.public abstract WindowFixture<T> using(Robot robot)
using
in class ComponentFinderTemplate<T extends Window>
robot
- contains the underlying finding to delegate the search to.
WaitTimedOutError
- if a window with the given name or of the given type could not
be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |