Interface IExcelCell
public interface IExcelCell
Represents of an Excel cell.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Defines the supported Excel cell types. -
Method Summary
Modifier and TypeMethodDescriptionReturns string representation of the Excel cell content.Returns the date formats of the Excel cell.getStyle()
Returns the style of an Excel cell.void
setCellType
(IExcelCell.CellType cellType) Sets the type of the Excel cell to the specified type.void
setContent
(String content) Sets the content of the Excel cell to the specified value.void
setDateFormat
(DateFormat format) Sets the date format for the Excel cell to the specified format.void
setHeight
(float height) Sets the height of the Excel cell to the specified value.void
setLocalize
(boolean shouldLocalize) Sets whether the content of the Excel cell should be localized.void
setStyle
(IExcelCellStyle style) Sets the style of an Excel cell to the specified style.boolean
Returns whether the content of the Excel cell should be localized.
-
Method Details
-
getStyle
IExcelCellStyle getStyle()Returns the style of an Excel cell.- Returns:
- the style
-
setStyle
Sets the style of an Excel cell to the specified style.- Parameters:
style
- the style to set
-
setContent
Sets the content of the Excel cell to the specified value.- Parameters:
content
- the string representation of the value to set
-
getContent
String getContent()Returns string representation of the Excel cell content.- Returns:
- content to get
-
getDateFormat
DateFormat getDateFormat()Returns the date formats of the Excel cell.- Returns:
- the date format
-
setDateFormat
Sets the date format for the Excel cell to the specified format.- Parameters:
format
- the date format to set
-
setCellType
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
-