com.kovizone.poi.ooxml.plus.api.anno.ExcelColumn Maven / Gradle / Ivy
The newest version!
package com.kovizone.poi.ooxml.plus.api.anno;
import com.kovizone.poi.ooxml.plus.processor.ExcelColumnProcessors;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 指定为Excel列字段
*
* 注解处理器{@link ExcelColumnProcessors}
*
* @author KoviChen
*/
@Processor(ExcelColumnProcessors.class)
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelColumn {
/**
* 指定显示列名
*
* @return 列名
*/
String value();
/**
* 排序,由小到大
*
* @return 排序值
*/
int sort() default 0;
/**
* 列宽设置,
*
* @return 列宽
*/
int width() default -1;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy