com.saic.isd.printscreen
Class ContainerWalker

java.lang.Object
  extended bycom.saic.isd.printscreen.ContainerWalker

public class ContainerWalker
extends java.lang.Object

Walks through every ojbect in a conatiner and calls back on the IContainerCallBack interface, appropriately type-casting the object for processing.


Constructor Summary
ContainerWalker(java.awt.Container container, IContainerCallBack callback)
          Automatically starts the walking and callback process - this method will not return until the doucment has been fully walked and all callbacks made.
 
Method Summary
protected  void handleComponent(java.awt.Component cmp, boolean descend)
           
protected  void walkContainer(java.awt.Container container)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerWalker

public ContainerWalker(java.awt.Container container,
                       IContainerCallBack callback)
Automatically starts the walking and callback process - this method will not return until the doucment has been fully walked and all callbacks made.

Parameters:
container - The Container to walk.
callback - The code to process the container's objects.
Method Detail

walkContainer

protected void walkContainer(java.awt.Container container)

handleComponent

protected void handleComponent(java.awt.Component cmp,
                               boolean descend)


Copyright © 2002 Gerhard Beck. All rights reserved. Subject to GPL.