KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > faces > test > UIComponent1


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.test;
6
7 import java.util.ResourceBundle JavaDoc;
8
9 import javax.faces.component.UIComponentBase ;
10 import org.exoplatform.services.log.LogService;
11 /**
12  * Wed, Dec 22, 2003 @ 23:14
13  * @author: Tuan Nguyen
14  * @email: tuan08@users.sourceforge.net
15  * @version: $Id: UIComponent1.java,v 1.2 2004/06/03 22:51:36 tuan08 Exp $
16  */

17 public class UIComponent1 extends UIComponentBase {
18     static int counter = 0 ;
19     
20     public UIComponent1(LogService service) {
21         
22     }
23     
24     public UIComponent1(UIComponent2 component2, LogService service) {
25         System.out.println("Call constructor UIComponent1(UIComponent2, LogService)") ;
26         System.out.println("LogService : " + service) ;
27         System.out.println("UIComponent2 : " + component2) ;
28     }
29     
30     public String JavaDoc getFamily() { return "" ; }
31     
32     public class UIInnerComponent extends UIComponentBase {
33         public UIInnerComponent() {
34             
35         }
36         
37         public UIInnerComponent(LogService service) {
38             System.out.println("=== > Call constructor UIInnerComponent(LogService)") ;
39             System.out.println("LogService : " + service) ;
40             counter++ ;
41             if (counter > 5) System.exit(0) ;
42         }
43         
44         public String JavaDoc getFamily() { return "" ; }
45     }
46 }
47
Popular Tags