Package com.github.javaxcel.annotation
Annotation Type ExcelColumn
@Documented @Target(FIELD) @Retention(RUNTIME) public @interface ExcelColumn
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends com.github.javaxcel.styler.ExcelStyleConfig>bodyStyleConfiguration of body style.StringdefaultValueReplacement of the value when only writes the value that is null or empty string.String[]dropdownItemsDropdown items for the constraint.booleanenumDropdownPolicy that determines whether this will set constraint toEnumfield or not.Class<? extends com.github.javaxcel.styler.ExcelStyleConfig>headerStyleConfiguration of header style.StringnameHeader name.
-
Element Details
-
name
String nameHeader name.- Returns:
- header name
- Default:
- ""
-
enumDropdown
boolean enumDropdownPolicy that determines whether this will set constraint toEnumfield or not.If this is
true, this will make the column ofEnumfield dropdown.- Returns:
- whether this column will be dropdown or not.
- See Also:
ModelWriter.enumDropdown(),ExcelModel.enumDropdown(),dropdownItems()
- Default:
- false
-
dropdownItems
String[] dropdownItemsDropdown items for the constraint.If this is empty, dropdown items are
Enum.name().- Returns:
- dropdown items
- See Also:
ModelWriter.enumDropdown(),ExcelModel.enumDropdown(),enumDropdown()
- Default:
- {}
-
defaultValue
String defaultValueReplacement of the value when only writes the value that is null or empty string.This is ineffective to primitive type.
- Returns:
- replacement of the value when the value is null or empty string
- See Also:
AbstractExcelWriter.defaultValue(String),ExcelModel.defaultValue()
- Default:
- ""
-
headerStyle
Class<? extends com.github.javaxcel.styler.ExcelStyleConfig> headerStyleConfiguration of header style.This takes precedence over
ExcelModel.headerStyle().- Returns:
- configuration of header style
- See Also:
ExcelModel.headerStyle()
- Default:
- com.github.javaxcel.styler.NoStyleConfig.class
-
bodyStyle
Class<? extends com.github.javaxcel.styler.ExcelStyleConfig> bodyStyleConfiguration of body style.This takes precedence over
ExcelModel.bodyStyle().- Returns:
- configuration of body style
- See Also:
ExcelModel.bodyStyle()
- Default:
- com.github.javaxcel.styler.NoStyleConfig.class
-