KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > faces > core > component > ComponentVisitor


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.faces.core.component;
6
7 import java.util.List JavaDoc ;
8 /**
9  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
10  * @since Nov 17, 2004
11  * @version $Id$
12  */

13 public class ComponentVisitor {
14   public void traverse(UIExoComponent component) {
15     visit(component) ;
16     List JavaDoc children = component.getChildren() ;
17     for(int i = 0; i < children.size() ; i++) {
18       UIExoComponent child = (UIExoComponent) children.get(i);
19       traverse(child) ;
20     }
21   }
22   
23   protected void visit(UIExoComponent component) {
24     
25   }
26 }
27
Popular Tags