KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > excel > ExcelTableExtension


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  */

11 package com.tonbeller.jpivot.excel;
12
13 import com.tonbeller.jpivot.table.TableComponent;
14 import com.tonbeller.jpivot.table.TableComponentExtensionSupport;
15 import com.tonbeller.wcf.controller.RequestContext;
16
17 /**
18  */

19 public class ExcelTableExtension extends TableComponentExtensionSupport {
20   public static final String JavaDoc ID = "excel";
21
22   public String JavaDoc getId() {
23     return ID;
24   }
25
26   public void initialize(RequestContext context, TableComponent table) throws Exception JavaDoc {
27     super.initialize(context, table);
28     ExcelCellBuilderDecorator cbd = new ExcelCellBuilderDecorator(table.getCellBuilder());
29     table.setCellBuilder(cbd);
30   }
31   
32 }
Popular Tags