|
||||||||||
| 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 Hierarchycontains in class AWTHierarchypublic void dispose(Window w)
dispose in interface Hierarchydispose in class AWTHierarchypublic void ignoreExisting()
public Collection getRoots()
AWTHierarchy
getRoots in interface HierarchygetRoots in class AWTHierarchypublic Collection getComponents(Component c)
AWTHierarchy
getComponents in interface HierarchygetComponents in class AWTHierarchypublic 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 | |||||||||