ExcelAnnotation.java 929 字节
package com.framework.excel;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.apache.poi.hssf.usermodel.HSSFCell;

/**
 * 
 * @ClassName: ExcelAnnotation
 * @Description: excel注解类
 * @author Tim.Wang
 * @date 2016年7月5日 下午2:01:48
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.FIELD })
public  @interface ExcelAnnotation {

	/**
	 * 导入到excel的名字
	 */
	String name();

	/**
	 * 配置列名,对应A,B,C,D....
	 */
	 String column();

	/**
	 * 提示信息
	 */
	 String prompt() default "";

	/**
	 * 设置只能选择不能输入的列内容.
	 */
	 String[] combo() default { };

	/**
	 * 是否导出数据,为false时只导出标题
	 */
	 boolean isExport() default true;

	 int cellType() default HSSFCell.CELL_TYPE_STRING;

}