@FunctionalInterface public interface ExcelCellStyleDecorator
and(ExcelCellStyleDecorator) method.ExcelCellStyle,
FieldLocation| Modifier and Type | Method and Description |
|---|---|
default ExcelCellStyleDecorator |
and(ExcelCellStyleDecorator other)
Returns a composed decorator that applies this decorator and then the other decorator.
|
static ExcelCellStyleDecorator |
backgroundColor(ExcelColor backgroundColor)
Returns a decorator that sets the background color.
|
static ExcelCellStyleDecorator |
backgroundColor(ExcelColorPalette backgroundColor)
Returns a decorator that sets the background color using a palette color.
|
static ExcelCellStyleDecorator |
bold()
Returns a decorator that makes text bold.
|
static ExcelCellStyleDecorator |
dataFormat(String dataFormat)
Returns a decorator that sets the data format string for the cell.
|
void |
decorate(FieldLocation fieldLocation,
ExcelCellStyle style)
Applies styling to the given Excel cell style based on the field location.
|
static ExcelCellStyleDecorator |
fontColor(ExcelColor fontColor)
Returns a decorator that sets the font color.
|
static ExcelCellStyleDecorator |
fontColor(ExcelColorPalette fontColor)
Returns a decorator that sets the font color using a palette color.
|
static ExcelCellStyleDecorator |
hyperlink()
Returns a decorator that applies the standard hyperlink style to the cell.
|
static ExcelCellStyleDecorator |
italic()
Returns a decorator that makes text italic.
|
static ExcelCellStyleDecorator |
underline()
Returns a decorator that underlines text.
|
static ExcelCellStyleDecorator |
wrapText()
Returns a decorator that enables text wrapping.
|
void decorate(FieldLocation fieldLocation, ExcelCellStyle style)
fieldLocation - the location of the field being styledstyle - the cell style to modifydefault ExcelCellStyleDecorator and(ExcelCellStyleDecorator other)
other - the decorator to apply after this oneNullPointerException - if other is nullstatic ExcelCellStyleDecorator wrapText()
static ExcelCellStyleDecorator bold()
static ExcelCellStyleDecorator italic()
static ExcelCellStyleDecorator underline()
static ExcelCellStyleDecorator fontColor(ExcelColor fontColor)
fontColor - the font color to setstatic ExcelCellStyleDecorator fontColor(ExcelColorPalette fontColor)
fontColor - the palette color to use for the fontstatic ExcelCellStyleDecorator backgroundColor(ExcelColor backgroundColor)
backgroundColor - the background color to setstatic ExcelCellStyleDecorator backgroundColor(ExcelColorPalette backgroundColor)
backgroundColor - the palette color to use for the backgroundstatic ExcelCellStyleDecorator dataFormat(String dataFormat)
dataFormat - the data format string to set (e.g., "0.00" for decimals, "m/d/yy" for dates)static ExcelCellStyleDecorator hyperlink()
This typically formats the cell using an underlined blue font, matching the default hyperlink appearance in Excel.
Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.