|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.ApplicationObjectSupport org.springframework.web.context.support.WebApplicationObjectSupport org.springframework.web.servlet.view.AbstractView org.springframework.web.servlet.view.document.AbstractJExcelView com.poscoict.glueframework.web.control.spring.view.GlueJExcelView
public class GlueJExcelView
JExcel ±â¹ÝÀ¸·Î ExcelÀ» ExportÇϱâ À§ÇÑ View ClassÀÌ´Ù.
Nested Class Summary | |
---|---|
class |
GlueJExcelView.JExcelFormat
JExcelÀÇ Cell Type¿¡ ´ëÇÑ Á¤ÀǸ¦ °¡Áø ClassÀÌ´Ù. |
Field Summary | |
---|---|
static String |
DEFAULT_DATE_FORMAT
|
Fields inherited from class org.springframework.web.servlet.view.AbstractView |
---|
DEFAULT_CONTENT_TYPE |
Fields inherited from interface org.springframework.web.servlet.View |
---|
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE |
Constructor Summary | |
---|---|
GlueJExcelView()
|
Method Summary | |
---|---|
protected void |
buildExcelDocument(Map<String,Object> model,
jxl.write.WritableWorkbook workbook,
HttpServletRequest request,
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ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù. |
Methods inherited from class org.springframework.web.servlet.view.document.AbstractJExcelView |
---|
generatesDownloadContent, getTemplateSource, renderMergedOutputModel, setUrl |
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
---|
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
---|
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String DEFAULT_DATE_FORMAT
Constructor Detail |
---|
public GlueJExcelView()
Method Detail |
---|
protected void buildExcelDocument(Map<String,Object> model, jxl.write.WritableWorkbook workbook, HttpServletRequest request, HttpServletResponse response) throws Exception
buildExcelDocument
in class 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ÀÇ Key
Exception
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |