Package taro.spreadsheet.model
Class SpreadsheetCell
- java.lang.Object
-
- taro.spreadsheet.model.SpreadsheetCell
-
public class SpreadsheetCell extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpreadsheetCellapplyStyle(SpreadsheetCellStyle toApply)Applies the given style to the current style for this cell, meaning non-null fields on the given style will be set on this cell's style, but null fields will be ignored.intgetFontSizeInPoints()org.apache.poi.xssf.usermodel.XSSFCellgetPoiCell()SpreadsheetCellStylegetStyle()SpreadsheetTabgetTab()StringgetValue()SpreadsheetCellsetStyle(SpreadsheetCellStyle style)SpreadsheetCellsetValue(Object value)
-
-
-
Method Detail
-
setStyle
public SpreadsheetCell setStyle(SpreadsheetCellStyle style)
-
applyStyle
public SpreadsheetCell applyStyle(SpreadsheetCellStyle toApply)
Applies the given style to the current style for this cell, meaning non-null fields on the given style will be set on this cell's style, but null fields will be ignored. For instance, you could define a style that represents an 'invalid' cell and make the background color red and give it a red border. Then you could take any other style or cell and apply the invalid style to it. It would change the color to red and add the red border, but leave all other stylings (such as alignment, font, etc.) alone.
-
setValue
public SpreadsheetCell setValue(Object value)
-
getValue
public String getValue()
-
getPoiCell
public org.apache.poi.xssf.usermodel.XSSFCell getPoiCell()
-
getStyle
public SpreadsheetCellStyle getStyle()
-
getTab
public SpreadsheetTab getTab()
-
getFontSizeInPoints
public int getFontSizeInPoints()
-
-