abbot.finder
Interface Hierarchy

All Known Implementing Classes:
AWTHierarchy, CompactHierarchy, TestHierarchy

public interface Hierarchy

Provides access to all components in a hierarchy.


Method Summary
 boolean contains(Component c)
          Returns whether the hierarchy contains the given Component.
 void dispose(Window w)
          Provide proper disposal of the given Window, appropriate to this Hierarchy.
 Collection getComponents(Component c)
          Returns all sub-components of the given component.
 Container getParent(Component c)
          Return the parent component for the given Component.
 Collection getRoots()
          Provides all root components in the hierarchy.
 

Method Detail

getRoots

Collection getRoots()
Provides all root components in the hierarchy. Similar to Frame.getFrames().


getComponents

Collection getComponents(Component c)
Returns all sub-components of the given component. What constitutes a sub-component may vary depending on the Hierarchy implementation.


getParent

Container getParent(Component c)
Return the parent component for the given Component.


contains

boolean contains(Component c)
Returns whether the hierarchy contains the given Component.


dispose

void dispose(Window w)
Provide proper disposal of the given Window, appropriate to this Hierarchy. After disposal, the Window and its descendents will no longer be reachable from this Hierarchy.



Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge