|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@RunsInCurrentThread public interface ComponentHierarchy
Understands access to all components in a hierarchy.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |