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

com.github.javahao.util.word.ExcelField Maven / Gradle / Ivy

The newest version!
package com.github.javahao.util.word;

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

/**
 * Excel注解定义
 * @author ThinkGem
 * @version 2013-03-10
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelField {

	/**
	 * 导出字段名(默认调用当前字段的“get”方法,如指定导出字段为对象,请填写“对象名.对象属性”,例:“area.name”、“office.name”)
	 * @return 字段名
	 */
	String value() default "";

	/**
	 * 导出字段标题(需要添加批注请用“**”分隔,标题**批注,仅对导出模板有效)
	 * @return 标题
	 */
	String title();
	
	/**
	 * 字段类型(0:导出导入;1:仅导出;2:仅导入)
	 * @return 类型
	 */
	int type() default 0;

	/**
	 * 导出字段对齐方式(0:自动;1:靠左;2:居中;3:靠右)
	 * @return 对齐标识
	 */
	int align() default 0;
	
	/**
	 * 导出字段字段排序(升序)
	 * @return 排序
	 */
	int sort() default 0;

	/**
	 * 反射类型
	 * @return 反射类型
	 */
	Class fieldType() default Class.class;
	
	/**
	 * 字段归属组(根据分组导出导入)
	 * @return 字段归属组
	 */
	int[] groups() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy