public class AWTHierarchy extends Object implements Hierarchy
Modifier and Type | Field and Description |
---|---|
protected static Collection |
EMPTY |
protected static WindowTracker |
tracker |
Constructor and Description |
---|
AWTHierarchy() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected static final WindowTracker tracker
protected static final Collection EMPTY
public static Hierarchy getDefault()
ComponentTester.assertFrameShowing()
method.public static void setDefault(Hierarchy h)
ComponentTester.assertFrameShowing()
method.public boolean contains(Component c)
public void dispose(Window w)
public Collection getRoots()
public Collection getComponents(Component c)
getComponents
in interface Hierarchy
Abbot is hosted on