|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object abbot.finder.AWTHierarchy
public class AWTHierarchy
Provides access to the current AWT hierarchy.
Field Summary | |
---|---|
protected static Collection |
EMPTY
|
protected static WindowTracker |
tracker
|
Constructor Summary | |
---|---|
AWTHierarchy()
|
Method Summary | |
---|---|
boolean |
contains(Component c)
Returns whether the given component is reachable from any of the root windows. |
void |
dispose(Window w)
Properly dispose of the given Window, making it and its native resources available for garbage collection. |
Collection |
getComponents(Component c)
Return all descendents of interest of the given Component. |
static Hierarchy |
getDefault()
Obtain a default Hierarchy. |
Container |
getParent(Component c)
Return the parent component for the given Component. |
Collection |
getRoots()
Return all root components in the current AWT hierarchy. |
static void |
setDefault(Hierarchy h)
Set the default Hierarchy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final WindowTracker tracker
protected static final Collection EMPTY
Constructor Detail |
---|
public AWTHierarchy()
Method Detail |
---|
public static Hierarchy getDefault()
ComponentTester.assertFrameShowing()
method.
public static void setDefault(Hierarchy h)
ComponentTester.assertFrameShowing()
method.
public boolean contains(Component c)
contains
in interface Hierarchy
public void dispose(Window w)
dispose
in interface Hierarchy
public Collection getRoots()
getRoots
in interface Hierarchy
public Collection getComponents(Component c)
getComponents
in interface Hierarchy
public Container getParent(Component c)
Hierarchy
getParent
in interface Hierarchy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |