|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.hierarchy.ExistingHierarchy
public class ExistingHierarchy
Understands access to the current AWT hierarchy.
Constructor Summary | |
---|---|
ExistingHierarchy()
Creates a new ExistingHierarchy . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExistingHierarchy()
ExistingHierarchy
.
Method Detail |
---|
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 ComponentHierarchy
c
- the given component.
public boolean contains(Component c)
contains
in interface ComponentHierarchy
c
- 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 ComponentHierarchy
c
- 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 ComponentHierarchy
w
- the window to dispose.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |