zoukankan      html  css  js  c++  java
  • POI导出数据相关的辅助类

    package zxc.model.support;
    
    import java.io.File;
    import java.io.InputStream;
    import java.util.Date;
    import java.util.Map;
    
    import org.jfree.data.general.Dataset;
    
    import de.laures.cewolf.ChartPostProcessor;
    import de.laures.cewolf.DatasetProduceException;
    import de.laures.cewolf.DatasetProducer;
    
    public class FileBaseBean extends BaseBean implements DatasetProducer {
    
    	private static final long	serialVersionUID	= 1L;
    
    	private IeudBean			ieudBean			= null;
    
    	private ChartBean			chartBean			= null;
    
    	public IeudBean getIeudBean() {
    		return ieudBean == null ? ieudBean = new IeudBean() : ieudBean;
    	}
    
    	public ChartBean getChartBean() {
    		return chartBean == null ? chartBean = new ChartBean() : chartBean;
    	}
    
    	public void setChartBean(ChartBean chartBean) {
    		this.chartBean = chartBean;
    	}
    	
    	public void setIeudBean(IeudBean ieudBean) {
    		this.ieudBean = ieudBean;
    	}
    
    	//============================数据集生产者实现============================
    	public ChartPostProcessor getChartPostProcessor() {
    		return this.getChartBean().getChartPostProcessor();
    	}
    
    	public String getChartType() {
    		return this.getChartBean().getChartType();
    	}
    
    	public String getProducerId() {
    		return this.getChartBean().getProducerId();
    	}
    
    	@SuppressWarnings("unchecked")
    	public boolean hasExpired(Map params, Date date) {
    		return this.getChartBean().hasExpired(params, date);
    	}
    
    	@SuppressWarnings("unchecked")
    	public Object produceDataset(Map params) throws DatasetProduceException {
    		return this.getChartBean().produceDataset(params);
    	}
    
    	public void setChartType(String chartType) {
    		this.getChartBean().setChartType(chartType);
    	}
    
    	public void setDataset(Dataset dataset) {
    		this.getChartBean().setDataset(dataset);
    	}
    
    	public Boolean getCewolf() {
    		return this.getChartBean().getCewolf();
    	}
    
    	public void setCewolf(Boolean cewolf) {
    		this.getChartBean().setCewolf(cewolf);
    	}
    
    	//==========================================ieudBean的代理======================================
    	public int getBufferSize() {
    		return this.getIeudBean().getBufferSize();
    	}
    
    	public String getContentDisposition() {
    		return this.getIeudBean().getContentDisposition();
    	}
    
    	public String getContentLength() {
    		return this.getIeudBean().getContentLength();
    	}
    
    	public String getContentType() {
    		return this.getIeudBean().getContentType();
    	}
    
    	public File getDownLoadFile() {
    		return this.getIeudBean().getDownLoadFile();
    	}
    
    	public InputStream getDownLoadStream() {
    		return this.getIeudBean().getDownLoadStream();
    	}
    
    	public String getInputName() {
    		return this.getIeudBean().getInputName();
    	}
    
    	public InputStream getTargetStream() {
    		return this.getIeudBean().getTargetStream();
    	}
    
    	public File getUpload() {
    		return this.getIeudBean().getUpload();
    	}
    
    	public String getUploadContentType() {
    		return this.getIeudBean().getUploadContentType();
    	}
    
    	public String getUploadExtension() {
    		return this.getIeudBean().getUploadExtension();
    	}
    
    	public String getUploadFileName() {
    		return this.getIeudBean().getUploadFileName();
    	}
    
    	public String getUploadFilePath() {
    		return this.getIeudBean().getUploadFilePath();
    	}
    
    	public void setBufferSize(int bufferSize) {
    		this.getIeudBean().setBufferSize(bufferSize);
    	}
    
    	public void setContentDisposition(String contentDisposition) {
    		this.getIeudBean().setContentDisposition(contentDisposition);
    	}
    
    	public void setContentLength(String contentLength) {
    		this.getIeudBean().setContentLength(contentLength);
    	}
    
    	public void setContentType(String contentType) {
    		this.getIeudBean().setContentType(contentType);
    	}
    
    	public void setDownLoadFile(File downLoadFile) {
    		this.getIeudBean().setDownLoadFile(downLoadFile);
    	}
    
    	public void setDownLoadStream(InputStream downLoadStream) {
    		this.getIeudBean().setDownLoadStream(downLoadStream);
    	}
    
    	public void setInputName(String inputName) {
    		this.getIeudBean().setInputName(inputName);
    	}
    
    	public void setUpload(File upload) {
    		this.getIeudBean().setUpload(upload);
    	}
    
    	public void setUploadContentType(String uploadContentType) {
    		this.getIeudBean().setUploadContentType(uploadContentType);
    	}
    
    	public void setUploadExtension(String uploadExtension) {
    		this.getIeudBean().setUploadExtension(uploadExtension);
    	}
    
    	public void setUploadFileName(String uploadFileName) {
    		this.getIeudBean().setUploadFileName(uploadFileName);
    	}
    
    	public void setUploadFilePath(String uploadFilePath) {
    		this.getIeudBean().setUploadFilePath(uploadFilePath);
    	}
    
    	public String getExportTPL() {
    		return this.getIeudBean().getExportTPL();
    	}
    
    	public Boolean getExport() {
    		return this.getIeudBean().getExport();
    	}
    
    	public void setExport(Boolean export) {
    		this.getIeudBean().setExport(export);
    	}
    
    	public String getRegion() {
    		return this.getIeudBean().getRegion();
    	}
    
    	public void setExportTPL(String exportTPL) {
    		this.getIeudBean().setExportTPL(exportTPL);
    	}
    
    	public void setRegion(String region) {
    		this.getIeudBean().setRegion(region);
    	}
    
    	public void setOneTimeExport(Boolean oneTimeExport) {
    		this.getIeudBean().setOneTimeExport(oneTimeExport);
    	}
    
    	public void setDynamicCol(Boolean dynamicCol) {
    		this.getIeudBean().setDynamicCol(dynamicCol);
    	}
    
    	public void setMaxCountOneTime(Integer maxCountOneTime) {
    		this.getIeudBean().setMaxCountOneTime(maxCountOneTime);
    	}
    
    	//==========================================chartBean的代理======================================
    
    	public String getBackground() {
    		return this.getChartBean().getBackground();
    	}
    
    	public String getBackgroundImageAlpha() {
    		return this.getChartBean().getBackgroundImageAlpha();
    	}
    
    	public String getCategoryField() {
    		return this.getChartBean().getCategoryField();
    	}
    
    	public int getChartHeight() {
    		return this.getChartBean().getChartHeight();
    	}
    
    	public String getChartTitle() {
    		return this.getChartBean().getChartTitle();
    	}
    
    	public int getChartWidth() {
    		return this.getChartBean().getChartWidth();
    	}
    
    	public String getLegendAnchor() {
    		return this.getChartBean().getLegendAnchor();
    	}
    
    	public String getSeriesField() {
    		return this.getChartBean().getSeriesField();
    	}
    
    	public String getShowLegend() {
    		return this.getChartBean().getShowLegend();
    	}
    
    	public int getUnitWidth() {
    		return this.getChartBean().getUnitWidth();
    	}
    
    	public String getValueField() {
    		return this.getChartBean().getValueField();
    	}
    
    	public String getXaxisLabel() {
    		return this.getChartBean().getXaxisLabel();
    	}
    
    	public String getYaxisLabel() {
    		return this.getChartBean().getYaxisLabel();
    	}
    
    	public void setBackground(String background) {
    		this.getChartBean().setBackground(background);
    	}
    
    	public void setBackgroundImageAlpha(String backgroundImageAlpha) {
    		this.getChartBean().setBackgroundImageAlpha(backgroundImageAlpha);
    	}
    
    	public void setCategoryField(String categoryField) {
    		this.getChartBean().setCategoryField(categoryField);
    	}
    
    	public void setChartHeight(int chartHeight) {
    		this.getChartBean().setChartHeight(chartHeight);
    	}
    
    	public void setChartTitle(String chartTitle) {
    		this.getChartBean().setChartTitle(chartTitle);
    	}
    
    	public void setChartWidth(int chartWidth) {
    		this.getChartBean().setChartWidth(chartWidth);
    	}
    
    	public void setLegendAnchor(String legendAnchor) {
    		this.getChartBean().setLegendAnchor(legendAnchor);
    	}
    
    	public void setSeriesField(String seriesField) {
    		this.getChartBean().setSeriesField(seriesField);
    	}
    
    	public void setShowLegend(String showLegend) {
    		this.getChartBean().setShowLegend(showLegend);
    	}
    
    	public void setUnitWidth(int unitWidth) {
    		this.getChartBean().setUnitWidth(unitWidth);
    	}
    
    	public void setValueField(String valueField) {
    		this.getChartBean().setValueField(valueField);
    	}
    
    	public void setXaxisLabel(String xaxisLabel) {
    		this.getChartBean().setXaxisLabel(xaxisLabel);
    	}
    
    	public void setYaxisLabel(String yaxisLabel) {
    		this.getChartBean().setYaxisLabel(yaxisLabel);
    	}
    
    	public String toString() {
    		return super.toString() + "\n" + this.getIeudBean().toString() + "\n" + this.getChartBean().toString();
    	}
    
    }
    
     
  • 相关阅读:
    深入理解Java Proxy机制
    StringBuilder与StringBuffer的区别
    反射
    list和set区别
    spring总结
    Hibernate与 MyBatis的比较
    手机拍照或选择照片上传html5代码
    JSP两种跳转
    离散化
    圆方树
  • 原文地址:https://www.cnblogs.com/qq1988627/p/6606936.html
Copyright © 2011-2022 走看看