|
||||||||||
| 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<Dialog>
org.fest.swing.finder.DialogFinder
public class DialogFinder
Understands a finder for s. This class cannot be used directly, please see
Dialog.
WindowFinder
| Constructor Summary | |
|---|---|
protected |
DialogFinder(Class<? extends Dialog> dialogType)
Creates a new DialogFinder. |
protected |
DialogFinder(GenericTypeMatcher<? extends Dialog> matcher)
Creates a new DialogFinder. |
protected |
DialogFinder(String dialogName)
Creates a new DialogFinder. |
| Method Summary | |
|---|---|
protected Dialog |
cast(Component c)
Casts the given Component to . |
DialogFixture |
using(Robot robot)
Finds a by name or type. |
DialogFinder |
withTimeout(long timeout)
Sets the timeout for this finder. |
DialogFinder |
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 DialogFinder(String dialogName)
DialogFinder.
dialogName - the name of the Dialog to look for.protected DialogFinder(GenericTypeMatcher<? extends Dialog> matcher)
DialogFinder.
matcher - specifies the search criteria to use when looking up a Dialog.protected DialogFinder(Class<? extends Dialog> dialogType)
DialogFinder.
dialogType - the type of Dialog to look for.| Method Detail |
|---|
public DialogFinder withTimeout(long timeout)
withTimeout in class WindowFinderTemplate<Dialog>timeout - the number of milliseconds before stopping the search.
public DialogFinder withTimeout(long timeout,
TimeUnit unit)
withTimeout in class WindowFinderTemplate<Dialog>timeout - the period of time the search should be performed.unit - the time unit for timeout.
public DialogFixture using(Robot robot)
Dialog by name or type.
using in class WindowFinderTemplate<Dialog>robot - contains the underlying finding to delegate the search to.
DialogFixture managing the found Dialog.
WaitTimedOutError - if a Dialog could not be found.protected Dialog cast(Component c)
Component to Dialog.
cast in class ComponentFinderTemplate<Dialog>c - the given Component.
Component, casted to Dialog.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||