KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > components > table > renderer > DefaultCellRenderer


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.webwork.components.table.renderer;
6
7 import com.opensymphony.webwork.components.table.WebTable;
8
9
10 /**
11  * @author $author$
12  * @version $Revision: 1.1 $
13  */

14 public class DefaultCellRenderer extends AbstractCellRenderer {
15     //~ Constructors ///////////////////////////////////////////////////////////
16

17     public DefaultCellRenderer() {
18         super();
19     }
20
21     //~ Methods ////////////////////////////////////////////////////////////////
22

23     public String JavaDoc getCellValue(WebTable table, Object JavaDoc data, int row, int col) {
24         if (data != null) {
25             return data.toString();
26         }
27
28         return "null";
29     }
30 }
31
Popular Tags