All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deepoove.poi.data.TableRenderData Maven / Gradle / Ivy

/*
 * Copyright 2014-2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.deepoove.poi.data;

import java.util.List;

/**
 * 简单的表格渲染数据
 * 
 * @author Sayi
 * @version 0.0.3
 */
public class TableRenderData implements RenderData {

	private List headers;
	private List datas;
	private String noDatadesc;

	// 9500
	private int width;

	public TableRenderData(List headers, List datas) {
		this(headers, datas, null, 0);
	}

	/**
	 * 动态渲染的表格
	 * 
	 * @param datas
	 * @param noDatadesc
	 */
	public TableRenderData(List datas, String noDatadesc) {
		this(null, datas, null, 0);
	}

	public TableRenderData(List headers, List datas,
			String noDatadesc, int width) {
		this.headers = headers;
		this.datas = datas;
		this.noDatadesc = noDatadesc;
		this.width = width;
	}

	public List getDatas() {
		return datas;
	}

	public void setDatas(List datas) {
		this.datas = datas;
	}

	public String getNoDatadesc() {
		return noDatadesc;
	}

	public void setNoDatadesc(String noDatadesc) {
		this.noDatadesc = noDatadesc;
	}

	public List getHeaders() {
		return headers;
	}

	public void setHeaders(List headers) {
		this.headers = headers;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

}