Spring Framework AbstractJExcelView - 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 AbstractJExcelView class.

This code example shows how to use the following methods:
 
import org.springframework.stereotype.Service; 
import org.springframework.web.servlet.view.document.AbstractJExcelView; 
 
@Service(value="JxlExcelRevenueSummary")//¸ÃÃû³ÆÓëJxlRevenueReportControllerÖеÄÃû³Æ±£³ÖÒ»Ö 
public class JxlExcelRevenueReportView extends AbstractJExcelView { 
 
	@Override 
	protected void buildExcelDocument(@SuppressWarnings("rawtypes") Map model, 
			WritableWorkbook workbook, HttpServletRequest request, 
			HttpServletResponse response) throws Exception { 
 
		@SuppressWarnings("unchecked") 
		Map<String, String> revenueData = (Map<String, String>) model 
				.get("revenueData"); 
		WritableSheet sheet = workbook.createSheet("Revenue Report", 0); 
 
		sheet.addCell(new Label(0, 0, "Month")); 
		sheet.addCell(new Label(1, 0, "Revenue")); 
 
4
CodeRank