public class ExcelCellStyle extends Object implements Cloneable
ExcelCellStyleDecorator,
ExcelFont,
ExcelColor| Constructor and Description |
|---|
ExcelCellStyle() |
| Modifier and Type | Method and Description |
|---|---|
protected ExcelCellStyle |
clone() |
boolean |
equals(Object obj) |
ExcelColor |
getBackgroundColor()
Gets the background color of the cell.
|
String |
getDataFormat()
Gets the data format string for the cell (e.g., "0.00" for decimals, "m/d/yy" for dates).
|
ExcelFont |
getExcelFont()
Gets the font styling for the cell.
|
int |
hashCode() |
static ExcelCellStyle |
hyperlink()
Returns a new ExcelCellStyle that is underlined with a blue font color.
|
static ExcelCellStyle |
hyperlink(ExcelCellStyle style)
Decorates the supplied style making it underlined with a blue font color.
|
boolean |
isWrapText()
Returns whether text wrapping is enabled for the cell.
|
ExcelCellStyle |
setBackgroundColor(ExcelColor backgroundColor)
Sets the background color of the cell.
|
ExcelCellStyle |
setBackgroundColor(ExcelColorPalette backgroundColorPalette)
Sets the background color of the cell.
|
ExcelCellStyle |
setDataFormat(String dataFormat)
Sets the data format string for the cell (e.g., "0.00" for decimals, "m/d/yy" for dates).
|
ExcelCellStyle |
setExcelFont(ExcelFont excelFont)
Sets the font styling for the cell.
|
ExcelCellStyle |
setWrapText(boolean wrapText)
Sets whether text wrapping is enabled for the cell.
|
String |
toString() |
public static final ExcelCellStyle hyperlink()
public static final ExcelCellStyle hyperlink(ExcelCellStyle style)
public boolean isWrapText()
public ExcelCellStyle setWrapText(boolean wrapText)
wrapText - true to enable text wrapping, false to disablepublic ExcelColor getBackgroundColor()
public ExcelCellStyle setBackgroundColor(ExcelColor backgroundColor)
backgroundColor - the background color to setpublic ExcelCellStyle setBackgroundColor(ExcelColorPalette backgroundColorPalette)
backgroundColorPalette - the background color to setpublic ExcelFont getExcelFont()
public ExcelCellStyle setExcelFont(ExcelFont excelFont)
excelFont - the Excel font to setpublic String getDataFormat()
public ExcelCellStyle setDataFormat(String dataFormat)
dataFormat - the data format string to setprotected ExcelCellStyle clone()
Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.