|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabbot.finder.AWTHierarchy
abbot.finder.TestHierarchy
Provide filtering of components in the current hierarchy to facilitate testing. Components may be filtered after disposal so they don't factor into future test results.
In general, only Windows are filtered, and isFiltered checks for both self and Window being filtered. So getComponents() returns a filtered set only when the parent is a Window.
Auto-filter disposable dialogs generated by Swing.
Field Summary |
Fields inherited from class abbot.finder.AWTHierarchy |
EMPTY, tracker |
Constructor Summary | |
TestHierarchy()
|
Method Summary | |
boolean |
contains(Component c)
Returns whether the given component is reachable from any of the root windows. |
void |
dispose(Window w)
|
Collection |
getComponents(Component c)
Return all descendents of interest of the given Component. |
Collection |
getRoots()
Return all root components in the current AWT hierarchy. |
void |
ignoreExisting()
|
boolean |
isFiltered(Component c)
|
void |
setFiltered(Component c,
boolean filter)
Indicates whether the given component is to be included in the Hierarchy. |
Methods inherited from class abbot.finder.AWTHierarchy |
getDefault, getParent, setDefault |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestHierarchy()
Method Detail |
public boolean contains(Component c)
AWTHierarchy
contains
in interface Hierarchy
contains
in class AWTHierarchy
public void dispose(Window w)
dispose
in interface Hierarchy
dispose
in class AWTHierarchy
public void ignoreExisting()
public Collection getRoots()
AWTHierarchy
getRoots
in interface Hierarchy
getRoots
in class AWTHierarchy
public Collection getComponents(Component c)
AWTHierarchy
getComponents
in interface Hierarchy
getComponents
in class AWTHierarchy
public boolean isFiltered(Component c)
public void setFiltered(Component c, boolean filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |