public class DefaultExcelBuilder<T> extends Object implements Closeable
public static <T> DefaultExcelBuilder<T> of(Class<T> dataType)
T - TdataType - 数据的类类型public static <T> DefaultExcelBuilder<T> of(Class<T> dataType, org.apache.poi.ss.usermodel.Workbook workbook)
public DefaultExcelBuilder<T> titles(List<String> titles)
public DefaultExcelBuilder<T> sheetName(String sheetName)
public DefaultExcelBuilder<T> fieldDisplayOrder(List<String> fieldDisplayOrder)
public DefaultExcelBuilder<T> workbookType(WorkbookType workbookType)
public DefaultExcelBuilder<T> noStyle()
public DefaultExcelBuilder<T> widthStrategy(WidthStrategy widthStrategy)
@Deprecated public DefaultExcelBuilder<T> autoWidthStrategy(AutoWidthStrategy autoWidthStrategy)
public DefaultExcelBuilder<T> fixedTitles()
public DefaultExcelBuilder<T> freezePane(FreezePane freezePane)
public DefaultExcelBuilder<T> widths(int... widths)
public DefaultExcelBuilder<T> width(int columnIndex, int width)
public DefaultExcelBuilder<T> hideColumns(int... columnIndexs)
public DefaultExcelBuilder<T> groups(Class<?>... groups)
@Deprecated public DefaultExcelBuilder<T> globalStyle(String... styles)
public DefaultExcelBuilder<T> style(String... styles)
public DefaultExcelBuilder<T> titleRowHeight(int titleRowHeight)
public DefaultExcelBuilder<T> rowHeight(int rowHeight)
public DefaultExcelBuilder<T> binding(Object... applicationBeans)
public DefaultExcelBuilder<T> binding(Set<Object> applicationBeans)
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2023. All rights reserved.