public class ExistingHierarchy extends Object implements ComponentHierarchy
| Constructor and Description |
|---|
ExistingHierarchy()
Creates a new
ExistingHierarchy. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Component> |
childrenOf(Component c)
Returns all descendants of interest of the given component.
|
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.
|
Container |
parentOf(Component c)
Return the parent for the given component.
|
Collection<? extends Container> |
roots()
Provides all root containers in the hierarchy.
|
public ExistingHierarchy()
ExistingHierarchy.public Collection<? extends Container> roots()
roots in interface ComponentHierarchy@RunsInCurrentThread public Container parentOf(Component c)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
parentOf in interface ComponentHierarchyc - the given component.public boolean contains(Component c)
contains in interface ComponentHierarchyc - the given component.true.@RunsInCurrentThread public Collection<Component> childrenOf(Component c)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
childrenOf in interface ComponentHierarchyc - the given component.@RunsInCurrentThread public void dispose(Window w)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
dispose in interface ComponentHierarchyw - the window to dispose.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.