Search in sources :

Example 1 with DefautExcelDataSetHandler

use of com.kyj.fx.voeditor.visual.framework.excel.DefautExcelDataSetHandler in project Gargoyle by callakrsos.

the class FxExcelUtil method createExcel.

/**
	 * @작성자 : KYJ
	 * @작성일 : 2016. 9. 6. 
	 * @param exportExcelFile
	 *      export하려는 파일 확장자는 .xlsx 사용 권고
	 *      
	 * @param dataSource
	 *      데이터셋.  개발자 혼동(순서)을 피하기 위해 LinkedMap(순서유지)을 강제적으로 사용
	 *      값은 Map<Sheet명, Map<컬럼메타,List<값>> 순 매핑이되어있다.
	 *      
	 * @throws Exception
	 */
static void createExcel(IExcelScreenHandler screenHandler, File exportExcelFile, LinkedHashMap<String, LinkedHashMap<ExcelColumnExpression, List<Object>>> dataSource, Map<String, Map<String, String>> metadata, boolean overrite) throws Exception {
    DefautExcelDataSetHandler defaultHandler = new DefautExcelDataSetHandler();
    defaultHandler.setExcelScreenHandler(screenHandler);
    createExcel(exportExcelFile, dataSource, defaultHandler, metadata, overrite);
}
Also used : DefautExcelDataSetHandler(com.kyj.fx.voeditor.visual.framework.excel.DefautExcelDataSetHandler)

Aggregations

DefautExcelDataSetHandler (com.kyj.fx.voeditor.visual.framework.excel.DefautExcelDataSetHandler)1