|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectabbot.finder.AWTHierarchy
abbot.finder.TestHierarchy
public class TestHierarchy
Provide isolation of a Component hierarchy to limit consideration to only those Components created during the lifetime of this Hierarchy instance. Extant Components (and any subsequently generated subwindows) are ignored by default.
Implicitly auto-filters windows which are disposed (i.e. generate a
WINDOW_CLOSED event), but also implicitly un-filters them if they should
be shown again. Any Window explicitly disposed with
dispose(Window) will be ignored permanently.
| Field Summary |
|---|
| Fields inherited from class abbot.finder.AWTHierarchy |
|---|
EMPTY, tracker |
| Constructor Summary | |
|---|---|
TestHierarchy()
Create a new TestHierarchy which does not contain any UI Components which might already exist. |
|
TestHierarchy(boolean ignoreExisting)
Create a new TestHierarchy, indicating whether extant Components should be omitted from the Hierarchy. |
|
| Method Summary | |
|---|---|
boolean |
contains(Component c)
Returns whether the given component is reachable from any of the root windows. |
void |
dispose(Window w)
Dispose of the given Window, but only if it currently exists within the hierarchy. |
Collection |
getComponents(Component c)
Returns all sub-components of the given Component, omitting those which are currently filtered. |
Collection |
getRoots()
Returns all available root Windows, excluding those which have been filtered. |
void |
ignoreExisting()
Make all currently extant components invisible to this Hierarchy, without affecting their current state. |
boolean |
isFiltered(Component c)
Returns true if the given component will not be considered when walking the hierarchy. |
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()
public TestHierarchy(boolean ignoreExisting)
| 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()
getRoots in interface HierarchygetRoots in class AWTHierarchypublic Collection getComponents(Component c)
getComponents in interface HierarchygetComponents in class AWTHierarchypublic boolean isFiltered(Component c)
setFiltered(Component,boolean), or if
any Window ancestor has been filtered.
public void setFiltered(Component c,
boolean filter)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||