public class GlueJExcelView
extends org.springframework.web.servlet.view.document.AbstractJExcelView
Modifier and Type | Class and Description |
---|---|
class |
GlueJExcelView.JExcelFormat
JExcelÀÇ Cell Type¿¡ ´ëÇÑ Á¤ÀǸ¦ °¡Áø ClassÀÌ´Ù.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATE_FORMAT |
Constructor and Description |
---|
GlueJExcelView() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildExcelDocument(Map<String,Object> model,
jxl.write.WritableWorkbook workbook,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected String[] |
getColumnIds(GlueContext ctx,
String sheetId)
GlueContext¿¡¼ Column Id¸¦ °¡Á®¿À´Â ¸Þ¼ÒµåÀÌ´Ù.
|
protected String |
getFileName(GlueContext ctx)
¼³Á¤ °ª¿¡ µû¶ó FileNameÀ» ¸¸µé¾î ReturnÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
protected void |
writeBody(jxl.write.WritableSheet sheet,
List<Map<String,Object>> list,
String[] columnIds)
Excel DataºÎ¸¦ ÀÛ¼ºÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
protected void |
writeCell(jxl.write.WritableSheet sheet,
int x,
int y,
Object data,
String comment)
ÇÑ CellÀ» WriteÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
protected void |
writeHeader(jxl.write.WritableSheet sheet,
String[] columnIds,
String[] columnNames)
Excel Header¸¦ ÀÛ¼ºÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
protected void |
writeImage()
ÇÊ¿ä ½Ã ±¸Çö.
|
protected void |
writeRow(jxl.write.WritableSheet sheet,
Map<String,Object> map,
String[] columnIds,
int y)
Excel¿¡ ÇϳªÀÇ Row¸¦ ÀÛ¼ºÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
protected void |
writeSheet(GlueContext ctx,
jxl.write.WritableSheet sheet,
String sheetId)
GlueContext¿¡ SheetId·Î ÁöÁ¤ÇÑ °´Ã¼À» GetÇÏ¿© Excel Sheet¸¦ WriteÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
generatesDownloadContent, getTemplateSource, renderMergedOutputModel, setUrl
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public static String DEFAULT_DATE_FORMAT
protected void buildExcelDocument(Map<String,Object> model, jxl.write.WritableWorkbook workbook, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
buildExcelDocument
in class org.springframework.web.servlet.view.document.AbstractJExcelView
Exception
protected String getFileName(GlueContext ctx)
ctx
- GlueContext °´Ã¼protected void writeSheet(GlueContext ctx, jxl.write.WritableSheet sheet, String sheetId) throws Exception
ctx
- GlueContext °´Ã¼sheet
- WritableSheet °´Ã¼sheetId
- Sheet Id·Î ExportÇÏ·Á´Â DataÀÇ KeyException
protected String[] getColumnIds(GlueContext ctx, String sheetId)
ctx
- GlueContext °´Ã¼sheetId
- ExcelÀÇprotected void writeHeader(jxl.write.WritableSheet sheet, String[] columnIds, String[] columnNames) throws Exception
sheet
- WritableSheet °´Ã¼columnIds
- Column Id¿¡ ´ëÇÑ String[]columnNames
- Column¸í¿¡ ´ëÇÑ String[]Exception
protected void writeBody(jxl.write.WritableSheet sheet, List<Map<String,Object>> list, String[] columnIds) throws Exception
sheet
- WritableSheet °´Ã¼list
- Excel¿¡ WriteÇÏ·Á´Â Data °´Ã¼columnIds
- Column Id¿¡ ´ëÇÑ String[]Exception
protected void writeRow(jxl.write.WritableSheet sheet, Map<String,Object> map, String[] columnIds, int y) throws Exception
sheet
- WritableSheet °´Ã¼map
- WriteÇÏ·Á´Â Data Map.columnIds
- Column Id¿¡ ´ëÇÑ String[]y
- writeÇÏ·Á´Â Line.Exception
protected void writeCell(jxl.write.WritableSheet sheet, int x, int y, Object data, String comment) throws Exception
sheet
- WritableSheet °´Ã¼x
- cellÀÇ x ÁÂÇ¥ À§Ä¡y
- cellÀÇ y ÁÂÇ¥ À§Ä¡data
- cell¿¡ Ç¥±âÇÏ·Á´Â ³»¿ëcomment
- Column Id·Î nullÀÌ ¾Æ´Ñ °æ¿ì Comment(¸Þ¸ð)·Î »ðÀԵȴÙ.Exception
protected void writeImage()
Copyright © 2013–2020 POSCO ICT. All rights reserved.