?? modeltoexcel.java
字號:
package com.javayjm.excel.file;
import java.io.File;
import java.util.Map;
import jxl.write.WritableCellFormat;
/**
* 公 司:
* 文件名:ModelToExcel.java
* 作 者:YJM
* 版本號:1.0
* 時 間:2007-11-6下午02:22:21
*/
public interface ModelToExcel {
public void setHeader(String header);
public void setHeaderCellFormat(WritableCellFormat headerFormat);
public void setTitleCellFormat(WritableCellFormat titleFormat);
public void setNormolCellFormat(WritableCellFormat normolFormat);
public void setRowHeight(int intHeight);
// 默認按配制文件輸出,傳入的dynamicTitleMap(property,exceltitlename)
// 只是按javabean對應的屬性改變輸出標題
// 如果 isDynamicTitle = true ,按傳入的dynamicTitleMap 給出的列輸出,只是列顯示排序按配制文件設置。
// isDynamicTitle = true 要驗證,dynamicTitleMap size
// 大于0,且其中設置的屬性在javabean中存在的列必須大于0
public void setDynamicTitle(boolean isDynamicTitle);
public void setDynamicTitleMap(Map dynamicTitleMap);
public File getExcelfile();
// 文件導出時,支持模板導出
/*
* isTemplate = true ,按傳入的模板文件格式輸出, templateFile 模板文件, startRow 開始輸出的行數,
* paramMap 模板中的參數。map.put("Name","尹景民")如模板中有一個單元格為 制表人 #Name# ,輸出時為:制表人 尹景民
*/
public void setTemplateParam(String templateFile, int startRow, Map paramMap);
public void setTemplateParam(boolean isTemplate, String templateFile, int startRow, Map paramMap);
public void setParamMap(Map paramMap);
public void setStartRow(int startRow);
public void setTemplateFile(String templateFile);
public void setTemplate(boolean isTemplate);
//edit yjm 2008-03-28
public void setTemplateParam(String templateFile,int startRow,int startColumn,Map paramMap,boolean isInsertRow);
public void setTemplateParam(boolean isTemplate,String templateFile,int startRow,int startColumn,Map paramMap,boolean isInsertRow);
//支持多 Sheet 輸出
public void setSheet(int sheetNum,String sheetName);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -