Interface IExcelCellStyle
-
public interface IExcelCellStyleRepresents an Excel cell style.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIExcelCellStyle.BorderTypesDefines the available border types.static classIExcelCellStyle.ColorDefines the available colors.static classIExcelCellStyle.HorizontalAlignmentDefines the horizontal content alignment.static classIExcelCellStyle.VerticalAlignmentDefines the vertical content alignment.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetBackGroundColor(IExcelCellStyle.Color backGroundColor)Sets the background color of a cell to the specified color.voidsetBorderColor(Common.BorderSide borderSide, IExcelCellStyle.Color color)Sets the border color for the specified border side.voidsetBorderStyle(Common.BorderSide borderSide, IExcelCellStyle.BorderTypes type)Sets the border style for the specified side.voidsetDataFormat(java.lang.String dataFormat)Set the data format of a cell to the specified format.voidsetFontStyle(java.lang.String fontName, short height, IExcelCellStyle.Color fontColor)Sets the text font to the specified values.voidsetHAlign(IExcelCellStyle.HorizontalAlignment align)Sets the horizontal alignment of text in a cell.voidsetTextDecoration(boolean isBold, boolean isItalic, boolean isUnderlined, boolean isStrikeOut)Sets the text decoration to the specified values.voidsetVAlign(IExcelCellStyle.VerticalAlignment align)Sets the vertical alignment of text in a cell.
-
-
-
Method Detail
-
setBorderStyle
void setBorderStyle(Common.BorderSide borderSide, IExcelCellStyle.BorderTypes type)
Sets the border style for the specified side.- Parameters:
borderSide- the border side to changetype- the border type to set
-
setBorderColor
void setBorderColor(Common.BorderSide borderSide, IExcelCellStyle.Color color)
Sets the border color for the specified border side.- Parameters:
borderSide- the border side to changecolor- the color to set
-
setTextDecoration
void setTextDecoration(boolean isBold, boolean isItalic, boolean isUnderlined, boolean isStrikeOut)Sets the text decoration to the specified values.- Parameters:
isBold- true if text should be bold, false otherwiseisItalic- true if text should be italic, false otherwiseisUnderlined- true if text should be underlined, false otherwiseisStrikeOut- true if text should be 'strike-out', false otherwise
-
setFontStyle
void setFontStyle(java.lang.String fontName, short height, IExcelCellStyle.Color fontColor)Sets the text font to the specified values.- Parameters:
fontName- the name of the font to setheight- the font size to setfontColor- the font color to set
-
setHAlign
void setHAlign(IExcelCellStyle.HorizontalAlignment align)
Sets the horizontal alignment of text in a cell.- Parameters:
align- the alignment to set
-
setVAlign
void setVAlign(IExcelCellStyle.VerticalAlignment align)
Sets the vertical alignment of text in a cell.- Parameters:
align- the alignment to set
-
setBackGroundColor
void setBackGroundColor(IExcelCellStyle.Color backGroundColor)
Sets the background color of a cell to the specified color.- Parameters:
backGroundColor- the background color to set
-
setDataFormat
void setDataFormat(java.lang.String dataFormat)
Set the data format of a cell to the specified format.- Parameters:
dataFormat- the format to set
-
-