abbot.finder
Class AWTHierarchy
java.lang.Object
abbot.finder.AWTHierarchy
- All Implemented Interfaces:
- Hierarchy
- Direct Known Subclasses:
- TestHierarchy
- public class AWTHierarchy
- extends Object
- implements Hierarchy
Provides access to the current AWT hierarchy.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tracker
protected static final WindowTracker tracker
EMPTY
protected static final Collection EMPTY
AWTHierarchy
public AWTHierarchy()
getDefault
public static Hierarchy getDefault()
setDefault
public static void setDefault(Hierarchy h)
contains
public boolean contains(Component c)
- Returns whether the given component is reachable from any of the root
windows. The default is to consider all components contained in the
hierarchy, whether they are reachable or not (NOTE: isReachable is a
distinctly different operation).
- Specified by:
contains
in interface Hierarchy
dispose
public void dispose(Window w)
- Specified by:
dispose
in interface Hierarchy
getRoots
public Collection getRoots()
- Return all root components in the current AWT hierarchy.
- Specified by:
getRoots
in interface Hierarchy
getComponents
public Collection getComponents(Component c)
- Return all descendents of interest of the given Component.
This includes owned windows for Windows, children for Containers.
- Specified by:
getComponents
in interface Hierarchy
getParent
public Container getParent(Component c)
- Specified by:
getParent
in interface Hierarchy
Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on