|
|||||||||||
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.ComponentFinder junit.extensions.jfcunit.finder.JFileChooserFinder
This class locates the JFileChooser with the given title. The container may be the window which owns the JFileChooser. Owned windows will be explored.
Field Summary | |
private java.lang.String |
m_title
Title to be compared. |
Fields inherited from class junit.extensions.jfcunit.finder.ComponentFinder |
|
Fields inherited from class junit.extensions.jfcunit.finder.Finder |
OP_CONTAINS, OP_ENDSWITH, OP_EQUALS, OP_MATCH, OP_STARTSWITH |
Constructor Summary | |
JFileChooserFinder(java.lang.String title)
Constructor accepting all arguments needed to filter component. |
Method Summary | |
java.awt.Component |
find(java.awt.Container[] conts,
int index)
Find all of the components under the specified containers. |
protected java.util.List |
findAll(java.awt.Container[] cont,
java.util.List results)
This findAll will also explore the owned windows if a container is a window. |
java.lang.String |
getTitle()
Get the title to be matched. |
void |
setTitle(java.lang.String title)
Set the title to be matched. |
boolean |
testComponent(java.awt.Component comp)
Method that returns true if the given Component matches the search
criteria. |
Methods inherited from class junit.extensions.jfcunit.finder.ComponentFinder |
getComponentClass, setComponentClass |
Methods inherited from class junit.extensions.jfcunit.finder.Finder |
createPatternMatcher, evaluate, find, find, find, findAll, findAll, findAll, findComponentList, getDebug, getDefaultWait, getOperation, getOperation, getOperationString, getShowDebug, getWait, isCaseIndependent, isValidForProcessing, matchPattern, matchPattern, matchPattern, pause, recreatePatternMatcher, setCaseIndependent, setDebug, setDefaultWait, setIgnoreVisibility, setOperation, setShowDebug, setWait |
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
Constructor Detail |
public JFileChooserFinder(java.lang.String title)
title
- The desired pattern for the title of the component.Method Detail |
public final void setTitle(java.lang.String title)
title
- to be matched.public final java.lang.String getTitle()
public boolean testComponent(java.awt.Component comp)
Component
matches the search
criteria.
testComponent
in class ComponentFinder
comp
- The component to test
public java.awt.Component find(java.awt.Container[] conts, int index)
find
in class Finder
conts
- Container[] to be searched.index
- int index of chooser to return.
protected java.util.List findAll(java.awt.Container[] cont, java.util.List results)
findAll
in class Finder
cont
- Containers to be explored.results
- items which have been found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |