Annotation Type ExcelCellLayout
The Interface ExcelCellLayout.
ExcelCellLayout is used to define the cell style.
The cell style is composed by:
ExcelCellLayout is used to define the cell style.
The cell style is composed by:
- Border - to set borders types
- HorizontalAlignment - to set horizontal align
- VerticalAlignment - to set vertical align
- Font - to set font type
- wrap - to enable/disable wrap text into cell
- rgbFont - to set the font color
- rgbForeground - to set the background color
- fillPatternType - to set fill pattern style
- precision - to set the precision number, if the value is not a number then it is ignored
- locked - to enable/disable edit cell
- Field in the classes:
- Annotations:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanAuto size column.Border.org.apache.poi.ss.usermodel.FillPatternTypeFill pattern type.Font.org.apache.poi.ss.usermodel.HorizontalAlignmentHorizontal alignment.booleanLocked.booleanintPrecision.Rgb font.Rgb foreground.org.apache.poi.ss.usermodel.VerticalAlignmentVertical alignment.booleanWrap.
-
Element Details
-
border
ExcelBorder borderBorder.- Returns:
- the excel border
- Default:
@bld.generator.report.excel.annotation.ExcelBorder(top=THIN, bottom=THIN, left=THIN, right=THIN)
-
horizontalAlignment
org.apache.poi.ss.usermodel.HorizontalAlignment horizontalAlignmentHorizontal alignment.- Returns:
- the horizontal alignment
- Default:
LEFT
-
verticalAlignment
org.apache.poi.ss.usermodel.VerticalAlignment verticalAlignmentVertical alignment.- Returns:
- the vertical alignment
- Default:
CENTER
-
font
ExcelFont fontFont.- Returns:
- the excel font
- Default:
@bld.generator.report.excel.annotation.ExcelFont
-
wrap
boolean wrapWrap.- Returns:
- true, if successful
- Default:
true
-
rgbFont
ExcelRgbColor[] rgbFontRgb font.- Returns:
- the excel rgb color
RgbFont is an array for alternating font colors between rows through the following expression:
numberRow mod sizeArray
- Default:
{@bld.generator.report.excel.annotation.ExcelRgbColor(red=(byte)0x00, green=(byte)0x00, blue=(byte)0x00)}
-
rgbForeground
ExcelRgbColor[] rgbForegroundRgb foreground.- Returns:
- the excel rgb color
RgbForeground is an array for alternating foreground colors between rows through the following expression:
numberRow mod sizeArray
- Default:
{@bld.generator.report.excel.annotation.ExcelRgbColor(red=(byte)0xff, green=(byte)0xff, blue=(byte)0xff)}
-
fillPatternType
org.apache.poi.ss.usermodel.FillPatternType fillPatternTypeFill pattern type.- Returns:
- the fill pattern type
- Default:
SOLID_FOREGROUND
-
precision
int precisionPrecision.- Returns:
- the int
- Default:
-1
-
percent
boolean percent- Default:
false
-
locked
boolean lockedLocked.- Returns:
- true, if successful
- Default:
false
-
autoSizeColumn
boolean autoSizeColumnAuto size column.- Returns:
- true, if successful
- Default:
false
-