Spring Framework AbstractExcelView - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractExcelView class.

This code example shows how to use the following methods:
import common.money.MonetaryAmount; 
 
/** 
 * This view generates an Excel report from Account objects. 
 */ 
public class AccountsExcelView extends AbstractExcelView { 
 
	public final HSSFCellStyle NO_STYLE = null; 
	protected final Logger logger = Logger.getLogger(AccountsExcelView.class); 
	 
	@Override 
	@SuppressWarnings("unchecked") 
	protected void buildExcelDocument(Map<String, Object> model, 
			HSSFWorkbook workbook, HttpServletRequest request, 
			HttpServletResponse response) throws Exception { 
		Customer cust = (Customer) model.get("customer"); 
		List<Account> accounts = null; 
		logger.setLevel(Level.INFO); 
 
		if (cust == null) { 
3
CodeRank
This code example shows how to use the following methods:
 *  -------    --------    --------------------------- 
 *   2011.06.07  신혜연          최초 생성 
 *  
 * </pre> 
 */ 
public class EgovExcel extends AbstractExcelView { 
 
	/** 
	 * 엑셀파일을 설정하고 생성한다. 
	 * @param model 
	 * @param wb 
	 * @param request 
	 * @param response 
	 * @throws Exception 
	 */ 
	@Override 
	protected void buildExcelDocument(Map<String, Object> model, 
			HSSFWorkbook wb, HttpServletRequest request, 
			HttpServletResponse response) throws Exception { 
		 
3
CodeRank
This code example shows how to use the following methods:
 * ´´½¨ExcelÊÓͼ 
 * @author scott 
 * 
 */ 
@Service(value="PoiExcelRevenueSummary")//¸ÃÃû³ÆÓëRevenueReportControllerÖеÄÃû³Æ±£³ÖÒ»Ö 
public class PoiExcelRevenueReportView extends AbstractExcelView { 
 
	@Override 
	protected void buildExcelDocument(Map<String, Object> model, 
			HSSFWorkbook workbook, HttpServletRequest request, 
			HttpServletResponse response) throws Exception { 
		@SuppressWarnings("unchecked") 
		Map<String, String> revenueData = (Map<String, String>) model.get("revenueData"); 
		// create a wordsheet 
		HSSFSheet sheet = workbook.createSheet("Revenue Report"); 
 
		HSSFRow header = sheet.createRow(0); 
		header.createCell(0).setCellValue("Month"); 
		header.createCell(1).setCellValue("Revenue"); 
 
4
CodeRank