xyz.proteanbear.template.annotation.PbPOIExcel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of PbPOITemplate Show documentation
Show all versions of PbPOITemplate Show documentation
The tools is created for easy use of Apache POI.
package xyz.proteanbear.template.annotation;
import java.lang.annotation.*;
/**
* Custom annotations mark Excel file attributes.
*
* @author ProteanBear
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PbPOIExcel
{
/**
* @return The title of the sheet,using for exporting a excel file.
*/
String sheetTitle() default "sheet";
/**
* Set excel title line's number(start from 0)
* Start calculate from not null row
* If not title row,set -1.
*
* @return line's number(start from 0)
*/
int titleLine() default 0;
}