Deprecated AbstractJExcelView since JExcelAPI is an abandoned project
JXL had no release since 2009, and has some serious bugs remaining: e.g. JXL on Unix cannot read template files created on Windows, using the 'latest' JXL 2.6.12 release.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2012 the original author or authors.
|
* Copyright 2002-2013 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -19,7 +19,6 @@ package org.springframework.web.servlet.view.document;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
@@ -34,9 +33,9 @@ import org.springframework.web.servlet.view.AbstractView;
|
|||||||
/**
|
/**
|
||||||
* Convenient superclass for Excel document views.
|
* Convenient superclass for Excel document views.
|
||||||
*
|
*
|
||||||
* <p>This class uses the <i>JExcelAPI</i> instead of <i>POI</i>. More
|
* <p>This class uses the <i>JExcelAPI</i> instead of <i>POI</i>.
|
||||||
* information on <i>JExcelAPI</i> can be found on their <a
|
* More information on <i>JExcelAPI</i> can be found on their
|
||||||
* href="http://www.andykhan.com/jexcelapi/" target="_blank">website</a>.
|
* <a href="http://www.andykhan.com/jexcelapi/" target="_blank">website</a>.
|
||||||
*
|
*
|
||||||
* <p>Properties:
|
* <p>Properties:
|
||||||
* <ul>
|
* <ul>
|
||||||
@@ -58,11 +57,11 @@ import org.springframework.web.servlet.view.AbstractView;
|
|||||||
*
|
*
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* protected void buildExcelDocument(
|
* protected void buildExcelDocument(
|
||||||
* Map<String, Object> model, WritableWorkbook workbook,
|
* Map<String, Object> model, WritableWorkbook workbook,
|
||||||
* HttpServletRequest request, HttpServletResponse response) {
|
* HttpServletRequest request, HttpServletResponse response) {
|
||||||
*
|
*
|
||||||
* if (workbook.getNumberOfSheets() == 0) {
|
* if (workbook.getNumberOfSheets() == 0) {
|
||||||
* workbook.createSheet("Spring", 0);
|
* workbook.createSheet("Spring", 0);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* WritableSheet sheet = workbook.getSheet("Spring");
|
* WritableSheet sheet = workbook.getSheet("Spring");
|
||||||
@@ -70,7 +69,7 @@ import org.springframework.web.servlet.view.AbstractView;
|
|||||||
* sheet.addCell(label);
|
* sheet.addCell(label);
|
||||||
* }</pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* The use of this view is close to the AbstractExcelView class,
|
* The use of this view is close to the {@link AbstractExcelView} class,
|
||||||
* just using the JExcel API instead of the Apache POI API.
|
* just using the JExcel API instead of the Apache POI API.
|
||||||
*
|
*
|
||||||
* @author Bram Smeets
|
* @author Bram Smeets
|
||||||
@@ -79,7 +78,10 @@ import org.springframework.web.servlet.view.AbstractView;
|
|||||||
* @since 1.2.5
|
* @since 1.2.5
|
||||||
* @see AbstractExcelView
|
* @see AbstractExcelView
|
||||||
* @see AbstractPdfView
|
* @see AbstractPdfView
|
||||||
|
* @deprecated as of Spring 4.0, since JExcelAPI is an abandoned project
|
||||||
|
* (no release since 2009, with serious bugs remaining)
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public abstract class AbstractJExcelView extends AbstractView {
|
public abstract class AbstractJExcelView extends AbstractView {
|
||||||
|
|
||||||
/** The content type for an Excel response */
|
/** The content type for an Excel response */
|
||||||
|
|||||||
Reference in New Issue
Block a user