|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.hierarchy.SingleComponentHierarchy
public final class SingleComponentHierarchy
Understands a component hierarchy created with a specified
as root.
Component
Constructor Summary | |
---|---|
SingleComponentHierarchy(Container root,
ComponentHierarchy hierarchy)
Creates a new SingleComponentHierarchy . |
Method Summary | |
---|---|
Collection<Component> |
childrenOf(Component c)
Returns all sub-components of the given . |
boolean |
contains(Component c)
Returns whether the hierarchy contains the given . |
void |
dispose(Window w)
Provides proper disposal of the given , appropriate to this hierarchy. |
Container |
parentOf(Component c)
Returns the parent component for the given . |
Container |
root()
Returns the root component in this hierarchy. |
Collection<? extends Container> |
roots()
Returns a collection containing only the root in this hierarchy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleComponentHierarchy(Container root, ComponentHierarchy hierarchy)
SingleComponentHierarchy
.
root
- the root component for this hierarchyhierarchy
- the base component hierarchy.Method Detail |
---|
public Container root()
public Container parentOf(Component c)
Component
.
parentOf
in interface ComponentHierarchy
c
- the given Component
.
Component
.public Collection<? extends Container> roots()
Component
in this hierarchy.
roots
in interface ComponentHierarchy
Component
in this hierarchy.public Collection<Component> childrenOf(Component c)
Component
.
childrenOf
in interface ComponentHierarchy
c
- the given component.
Component
.public boolean contains(Component c)
Component
.
contains
in interface ComponentHierarchy
c
- the given component.
Component
.public void dispose(Window w)
Window
, appropriate to this hierarchy. After disposal,
the Window
and its descendants will no longer be reachable from this hierarchy.
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 |