|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcreamtec.core.awt.ContainerIterator
public class ContainerIterator
Provides iteration of the container tree with a callback method. Iterates all children of the container recursing into subcontainers and calls processComponent method of the Listener interface on each contained component
| Nested Class Summary | |
|---|---|
static interface |
ContainerIterator.Listener
Users of the class must implement this Listener interface to process iterated components |
| Constructor Summary | |
|---|---|
ContainerIterator(ContainerIterator.Listener listener)
Initializes the container and associates a listener with it By default, invisible components are not processed |
|
ContainerIterator(ContainerIterator.Listener listener,
boolean iterateInvisible)
Initializes the container |
|
| Method Summary | |
|---|---|
void |
iterate(java.awt.Component comp)
Recurses the container tree |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerIterator(ContainerIterator.Listener listener)
public ContainerIterator(ContainerIterator.Listener listener,
boolean iterateInvisible)
listener - a callback object, that is interested in component processingiterateInvisible - if false, the callback will not be called on invisible components| Method Detail |
|---|
public void iterate(java.awt.Component comp)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||