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