KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > faces > core > component > model > HeaderRow


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.model;
6
7 import java.io.IOException JavaDoc ;
8 import java.util.ResourceBundle JavaDoc;
9 import javax.faces.context.ResponseWriter ;
10 import org.exoplatform.faces.core.component.UIGrid;
11
12 /**
13  * Wed, Dec 22, 2003 @ 23:14
14  * @author: Tuan Nguyen
15  * @email: tuan08@users.sourceforge.net
16  * @version: $Id: HeaderRow.java,v 1.4 2004/06/30 19:52:01 tuan08 Exp $
17  */

18 public class HeaderRow extends Row {
19   public void render(ResponseWriter w, ResourceBundle JavaDoc res, UIGrid uiParent) throws IOException JavaDoc {
20     if(!visible_) return ;
21     w.write("<tr") ;
22     if(clazz_ != null) { w.write(" class='");w.write(clazz_);w.write("'") ; }
23     w.write('>') ;
24     for (int i = 0 ; i < cells_.size() ; i++) {
25       Cell cell = (Cell) cells_.get(i) ;
26       cell.render(w, res, uiParent, "th") ;
27     }
28     w.write("</tr>") ;
29   }
30 }
31
Popular Tags