01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.components.table.renderer;
06:
07: import com.opensymphony.webwork.components.table.WebTable;
08:
09: /**
10: * @author $author$
11: * @version $Revision: 1282 $
12: */
13: public class DefaultCellRenderer extends AbstractCellRenderer {
14:
15: public DefaultCellRenderer() {
16: super ();
17: }
18:
19: public String getCellValue(WebTable table, Object data, int row,
20: int col) {
21: if (data != null) {
22: return data.toString();
23: }
24:
25: return "null";
26: }
27: }
|