|
|||||||||||
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
A generic Component
finder which uses just the type (class) for filtering.
Field Summary | |
private java.lang.Class |
m_compCls
The type of the Component . |
Fields inherited from class junit.extensions.jfcunit.finder.Finder |
OP_CONTAINS, OP_ENDSWITH, OP_EQUALS, OP_MATCH, OP_STARTSWITH |
Constructor Summary | |
ComponentFinder(java.lang.Class cls)
Constructor accepting all arguments needed to filter the Component . |
Method Summary | |
java.lang.Class |
getComponentClass()
Get the class associated with the finder. |
void |
setComponentClass(java.lang.Class cls)
Set the class of the object to be found. |
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.Finder |
createPatternMatcher, evaluate, find, find, find, find, findAll, 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.Class m_compCls
Component
.
Constructor Detail |
public ComponentFinder(java.lang.Class cls)
Component
.
cls
- The desired type of the component.Method Detail |
public final void setComponentClass(java.lang.Class cls)
cls
- Class of the objects to be found.public final java.lang.Class getComponentClass()
public boolean testComponent(java.awt.Component comp)
Component
matches the search
criteria.
testComponent
in class Finder
comp
- The component to test
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |