|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.extensions.jfcunit.finder.Finder junit.extensions.jfcunit.finder.AbstractWindowFinder
Class for checking if the (Window
) component being searched for has been found.
This class can be used to check only windows that have titles (Frame/Dialog and their sub-classes)
The pattern syntax can be found at the Jakarta RegExp API Documentation in RE
.
Field Summary | |
private boolean |
m_caseIndependent
A boolean specifying whether the filtration is case insensitive. |
private java.lang.String |
m_title
The title of the component. |
Fields inherited from class junit.extensions.jfcunit.finder.Finder |
OP_CONTAINS, OP_ENDSWITH, OP_EQUALS, OP_MATCH, OP_STARTSWITH |
Constructor Summary | |
AbstractWindowFinder(java.lang.String str)
Constructor accepting all arguments needed to filter component. |
|
AbstractWindowFinder(java.lang.String title,
boolean caseIndependent)
Constructor accepting all arguments needed to filter component. |
Method Summary | |
protected boolean |
checkIfTitleMatches(java.lang.String winTitle)
This method checks whether the winTitle and the title strings are equal. |
java.util.List |
findAll(java.awt.Container[] owners)
Find the components matching this finder. |
java.lang.String |
getTitle()
Returns the title. |
static java.util.List |
getWindows(java.util.List pRet,
java.awt.Container[] windows,
Finder finder)
Returns a set of all the Windows that are currently visible and the title contains the given titlematch string. |
boolean |
isCaseIndependent()
Returns the caseIndependent. |
void |
setCaseIndependent(boolean ignoreCase)
Set the finder into a case independent mode. |
void |
setTitle(java.lang.String title)
Set the title for the finder. |
Methods inherited from class junit.extensions.jfcunit.finder.Finder |
createPatternMatcher, evaluate, find, find, find, find, findAll, findAll, findAll, findComponentList, getDebug, getDefaultWait, getOperation, getOperation, getOperationString, getShowDebug, getWait, isValidForProcessing, matchPattern, matchPattern, matchPattern, pause, recreatePatternMatcher, setDebug, setDefaultWait, setIgnoreVisibility, setOperation, setShowDebug, setWait, testComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String m_title
private boolean m_caseIndependent
Constructor Detail |
public AbstractWindowFinder(java.lang.String str)
str
- The desired pattern for the title of the component.public AbstractWindowFinder(java.lang.String title, boolean caseIndependent)
title
- The desired pattern for the title of the component.caseIndependent
- Whether the match should be case independent (true) or not (false)Method Detail |
public final void setTitle(java.lang.String title)
title
- String title to be set.public void setCaseIndependent(boolean ignoreCase)
setCaseIndependent
in class Finder
ignoreCase
- true if case should be ignored.public boolean isCaseIndependent()
isCaseIndependent
in class Finder
public final java.lang.String getTitle()
public static java.util.List getWindows(java.util.List pRet, java.awt.Container[] windows, Finder finder)
pRet
- The list of already filtered and accepted windows.windows
- The array of windows to filter and add.finder
- The FrameFinder which is used to filter using a title match
public java.util.List findAll(java.awt.Container[] owners)
findAll
in class Finder
owners
- Owner windows which should be searched.
protected final boolean checkIfTitleMatches(java.lang.String winTitle)
winTitle
- The title of the window being checked
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |