@RunsInCurrentThread public interface ComponentHierarchy
Note: methods in this interface are not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for invoking them in the EDT.
Modifier and Type | Method and Description |
---|---|
Collection<Component> |
childrenOf(Component c)
Returns all sub-components of the given component.
|
boolean |
contains(Component c)
Returns whether this hierarchy contains the given component.
|
void |
dispose(Window w)
Provides proper disposal of the given window, appropriate to this hierarchy.
|
Container |
parentOf(Component c)
Return the parent for the given component.
|
Collection<? extends Container> |
roots()
Provides all root containers in the hierarchy.
|
Collection<? extends Container> roots()
Collection<Component> childrenOf(Component c)
c
- the given component.Container parentOf(Component c)
c
- the given component.boolean contains(Component c)
c
- the given component.true
if this hierarchy contains the given component, false
otherwise.void dispose(Window w)
w
- the container to window.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.