|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@RunsInCurrentThread public interface ComponentHierarchy
Provides access to all AWT or Swing Component
s in a hierarchy.
Note: Methods in this interface are accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT.) Client code must call methods in this interface from the EDT.
Method Summary | |
---|---|
Collection<Component> |
childrenOf(Component c)
Returns all the children of the given AWT or Swing Component . |
boolean |
contains(Component c)
Indicates whether this ComponentHierarchy contains the given AWT or Swing Component . |
void |
dispose(Window w)
Provides proper disposal of the given AWT or Swing Window , appropriate to this ComponentHierarchy . |
Container |
parentOf(Component c)
Returns the parent for the given AWT or Swing Component . |
Collection<Container> |
roots()
|
Method Detail |
---|
@Nonnull Collection<Container> roots()
Container
s in the ComponentHierarchy
.@Nonnull Collection<Component> childrenOf(@Nonnull Component c)
Component
.
c
- the given Component
.
Component
.@Nullable Container parentOf(@Nonnull Component c)
Component
.
c
- the given Component
.
Component
.boolean contains(@Nonnull Component c)
ComponentHierarchy
contains the given AWT or Swing Component
.
c
- the given Component
.
true
if this ComponentHierarchy
contains the given Component
, false
otherwise.void dispose(@Nonnull Window w)
Window
, appropriate to this ComponentHierarchy
.
After disposal, the Window
and its descendants will no longer be reachable from this
ComponentHierarchy
.
w
- the Window
to dispose.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |