abbot.finder
Interface Hierarchy

All Known Implementing Classes:
AWTHierarchy, CompactHierarchy

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

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


getComponents

public 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

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


contains

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


dispose

public 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-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge