Interface IExcelCell
-
public interface IExcelCellRepresents of an Excel cell.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIExcelCell.CellTypeDefines the supported Excel cell types.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetContent()Returns string representation of the Excel cell content.java.text.DateFormatgetDateFormat()Returns the date formats of the Excel cell.IExcelCellStylegetStyle()Returns the style of an Excel cell.voidsetCellType(IExcelCell.CellType cellType)Sets the type of the Excel cell to the specified type.voidsetContent(java.lang.String content)Sets the content of the Excel cell to the specified value.voidsetDateFormat(java.text.DateFormat format)Sets the date format for the Excel cell to the specified format.voidsetHeight(float height)Sets the height of the Excel cell to the specified value.voidsetLocalize(boolean shouldLocalize)Sets whether the content of the Excel cell should be localized.voidsetStyle(IExcelCellStyle style)Sets the style of an Excel cell to the specified style.booleanshouldLocalize()Returns whether the content of the Excel cell should be localized.
-
-
-
Method Detail
-
getStyle
IExcelCellStyle getStyle()
Returns the style of an Excel cell.- Returns:
- the style
-
setStyle
void setStyle(IExcelCellStyle style)
Sets the style of an Excel cell to the specified style.- Parameters:
style- the style to set
-
setContent
void setContent(java.lang.String content)
Sets the content of the Excel cell to the specified value.- Parameters:
content- the string representation of the value to set
-
getContent
java.lang.String getContent()
Returns string representation of the Excel cell content.- Returns:
- content to get
-
getDateFormat
java.text.DateFormat getDateFormat()
Returns the date formats of the Excel cell.- Returns:
- the date format
-
setDateFormat
void setDateFormat(java.text.DateFormat format)
Sets the date format for the Excel cell to the specified format.- Parameters:
format- the date format to set
-
setCellType
void setCellType(IExcelCell.CellType cellType)
Sets the type of the Excel cell to the specified type.- Parameters:
cellType- the type to set
-
setHeight
void setHeight(float height)
Sets the height of the Excel cell to the specified value.- Parameters:
height- the height to set
-
shouldLocalize
boolean shouldLocalize()
Returns whether the content of the Excel cell should be localized.- Returns:
- true if the cell content should be localized, false otherwise
-
setLocalize
void setLocalize(boolean shouldLocalize)
Sets whether the content of the Excel cell should be localized.- Parameters:
shouldLocalize- true if the content should be localized, false otherwise
-
-