junit.extensions.jfcunit.finder
Class JWindowFinder

java.lang.Object
  extended byjunit.extensions.jfcunit.finder.Finder
      extended byjunit.extensions.jfcunit.finder.AbstractWindowFinder
          extended byjunit.extensions.jfcunit.finder.JWindowFinder

public class JWindowFinder
extends AbstractWindowFinder

Class for checking if the component being searched for has been found The pattern syntax can be found at the Jakarta RegExp API Documentation in RE.

Author:
Vijay Aravamudhan : ThoughtWorks Inc.

Field Summary
 
Fields inherited from class junit.extensions.jfcunit.finder.AbstractWindowFinder
 
Fields inherited from class junit.extensions.jfcunit.finder.Finder
OP_CONTAINS, OP_ENDSWITH, OP_EQUALS, OP_MATCH, OP_STARTSWITH
 
Constructor Summary
JWindowFinder()
          Constructor accepting all arguments needed to filter component.
 
Method Summary
 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.AbstractWindowFinder
checkIfTitleMatches, findAll, getTitle, getWindows, isCaseIndependent, setCaseIndependent, setTitle
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JWindowFinder

public JWindowFinder()
Constructor accepting all arguments needed to filter component. Since a JWindow does not have any attribute that can be used for filtering, the "default" constructor inherited from AbstractWindowFinder is "hidden".

Method Detail

testComponent

public boolean testComponent(java.awt.Component comp)
Method that returns true if the given component matches the search criteria.

Specified by:
testComponent in class Finder
Parameters:
comp - The component to test
Returns:
true if this component is a match


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999