abbot.finder.matchers
Class WindowMatcher

java.lang.Object
  extended by abbot.finder.matchers.AbstractMatcher
      extended by abbot.finder.matchers.ClassMatcher
          extended by abbot.finder.matchers.WindowMatcher
All Implemented Interfaces:
Matcher

public class WindowMatcher
extends ClassMatcher

Provides matching of a Window by title or component name.


Constructor Summary
WindowMatcher(String id)
           
WindowMatcher(String id, boolean mustBeShowing)
           
 
Method Summary
 boolean matches(Component c)
          Return whether the given Component matches some lookup criteria.
 String toString()
           
 
Methods inherited from class abbot.finder.matchers.AbstractMatcher
stringsMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowMatcher

public WindowMatcher(String id)

WindowMatcher

public WindowMatcher(String id,
                     boolean mustBeShowing)
Method Detail

matches

public boolean matches(Component c)
Description copied from interface: Matcher
Return whether the given Component matches some lookup criteria.

Specified by:
matches in interface Matcher
Overrides:
matches in class ClassMatcher

toString

public String toString()
Overrides:
toString in class ClassMatcher


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge