Package org.openl.rules.table.xls
Class XlsCell
- java.lang.Object
-
- org.openl.rules.table.xls.XlsCell
-
-
Constructor Summary
Constructors Constructor Description XlsCell(int column, int row, XlsSheetGridModel gridModel)Usually there is a parameter duplication: the same column and row exist in cell object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAbsoluteColumn()IGridRegiongetAbsoluteRegion()intgetAbsoluteRow()intgetColumn()ICellCommentgetComment()ICellFontgetFont()StringgetFormula()intgetHeight()booleangetNativeBoolean()DategetNativeDate()doublegetNativeNumber()intgetNativeType()ObjectgetObjectValue()IGridRegiongetRegion()intgetRow()StringgetStringValue()ICellStylegetStyle()ICellgetTopLeftCellFromRegion()intgetType()Returns one of IGrid.CELL_TYPE_* values.StringgetUri()intgetWidth()booleanhasNativeType()voidsetStringValue(String value)
-
-
-
Constructor Detail
-
XlsCell
public XlsCell(int column, int row, XlsSheetGridModel gridModel)Usually there is a parameter duplication: the same column and row exist in cell object. But sometimes cell is null, so we will have just the coordinates of the cell.
-
-
Method Detail
-
getStyle
public ICellStyle getStyle()
-
getAbsoluteColumn
public int getAbsoluteColumn()
- Specified by:
getAbsoluteColumnin interfaceICell- Returns:
- Absolute column index inside the sheet.
-
getAbsoluteRow
public int getAbsoluteRow()
- Specified by:
getAbsoluteRowin interfaceICell- Returns:
- Absolute row index inside the sheet.
-
getAbsoluteRegion
public IGridRegion getAbsoluteRegion()
- Specified by:
getAbsoluteRegionin interfaceICell- Returns:
- Absolute region of cell inside the sheet.
-
getRegion
public IGridRegion getRegion()
-
getObjectValue
public Object getObjectValue()
- Specified by:
getObjectValuein interfaceICell
-
getStringValue
public String getStringValue()
- Specified by:
getStringValuein interfaceICell
-
setStringValue
public void setStringValue(String value)
-
getTopLeftCellFromRegion
public ICell getTopLeftCellFromRegion()
- Specified by:
getTopLeftCellFromRegionin interfaceICell
-
getFormula
public String getFormula()
- Specified by:
getFormulain interfaceICell
-
getType
public int getType()
Description copied from interface:ICellReturns one of IGrid.CELL_TYPE_* values.
-
getNativeBoolean
public boolean getNativeBoolean()
- Specified by:
getNativeBooleanin interfaceICell
-
getNativeNumber
public double getNativeNumber()
- Specified by:
getNativeNumberin interfaceICell
-
getNativeType
public int getNativeType()
- Specified by:
getNativeTypein interfaceICell- Returns:
- IGrid.CELL_TYPE... constant, in case of CELL_TYPE_FORMULA returns cached value type
-
hasNativeType
public boolean hasNativeType()
- Specified by:
hasNativeTypein interfaceICell- Returns:
- true if the cell has ability to provide fast access to the native value(cached) If cell has not such an ability, the native methods should not be used
-
getNativeDate
public Date getNativeDate()
- Specified by:
getNativeDatein interfaceICell- Returns:
- date value if cell is of type
IGrid.CELL_TYPE_NUMERICand is formatted in excel as date.
null is cell is of typeIGrid.CELL_TYPE_NUMERICand is not formatted in excel as date.
-
getComment
public ICellComment getComment()
- Specified by:
getCommentin interfaceICell
-
-