abbot.editor
Class CompactHierarchy

java.lang.Object
  extended by abbot.editor.CompactHierarchy
All Implemented Interfaces:
Hierarchy

public class CompactHierarchy
extends Object
implements Hierarchy

Provides a condensed, more easily readable version of the original hierarchy.


Constructor Summary
CompactHierarchy(Hierarchy original)
           
 
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)
          Provide a list of a Component's children, sans any transient popups Keep track of any popups encountered.
 Container getParent(Component c)
          Return the parent component for the given Component.
 Collection getRoots()
          Provides all root components in the hierarchy.
 boolean isCompact()
           
 void setCompact(boolean compact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompactHierarchy

public CompactHierarchy(Hierarchy original)
Method Detail

setCompact

public void setCompact(boolean compact)

isCompact

public boolean isCompact()

getRoots

public Collection getRoots()
Description copied from interface: Hierarchy
Provides all root components in the hierarchy. Similar to Frame.getFrames().

Specified by:
getRoots in interface Hierarchy

getParent

public Container getParent(Component c)
Description copied from interface: Hierarchy
Return the parent component for the given Component.

Specified by:
getParent in interface Hierarchy

contains

public boolean contains(Component c)
Description copied from interface: Hierarchy
Returns whether the hierarchy contains the given Component.

Specified by:
contains in interface Hierarchy

dispose

public void dispose(Window w)
Description copied from interface: Hierarchy
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.

Specified by:
dispose in interface Hierarchy

getComponents

public Collection getComponents(Component c)
Provide a list of a Component's children, sans any transient popups Keep track of any popups encountered.

Specified by:
getComponents in interface Hierarchy


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

SourceForge