Class ColumnConfig<T>

java.lang.Object
io.github.dornol.excelkit.excel.ColumnStyleConfig<T,ColumnConfig<T>>
io.github.dornol.excelkit.excel.ColumnConfig<T>
Type Parameters:
T - the row data type

public class ColumnConfig<T> extends ColumnStyleConfig<T,ColumnConfig<T>>
Concrete column styling configuration used by ExcelSheetWriter and TemplateListWriter for their .column(name, fn, cfg -> ...) overloads.

All 47 styling methods (type, format, bold, color, width, border, validation, etc.) are inherited from ColumnStyleConfig. This class exists solely to close the generic self-type: ColumnStyleConfig<T, ColumnConfig<T>>, so that fluent chaining within the configurer lambda returns the correct concrete type.

ExcelColumn.ExcelColumnBuilder is a separate subclass of ColumnStyleConfig that adds style(CellStyle) and build() — it is used by ExcelWriter's column API and is unaffected by this class.

Since:
0.13.0
  • Constructor Details

    • ColumnConfig

      public ColumnConfig()
      Creates a new column configuration with defaults.