Class XlsCell

  • All Implemented Interfaces:
    ICell

    public class XlsCell
    extends Object
    implements ICell
    • 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

      • getAbsoluteColumn

        public int getAbsoluteColumn()
        Specified by:
        getAbsoluteColumn in interface ICell
        Returns:
        Absolute column index inside the sheet.
      • getAbsoluteRow

        public int getAbsoluteRow()
        Specified by:
        getAbsoluteRow in interface ICell
        Returns:
        Absolute row index inside the sheet.
      • getColumn

        public int getColumn()
        Specified by:
        getColumn in interface ICell
      • getRow

        public int getRow()
        Specified by:
        getRow in interface ICell
      • getRegion

        public IGridRegion getRegion()
        Specified by:
        getRegion in interface ICell
        Returns:
        grid region, if cell belongs to any merged region. In other cases null.
      • getHeight

        public int getHeight()
        Specified by:
        getHeight in interface ICell
      • getWidth

        public int getWidth()
        Specified by:
        getWidth in interface ICell
      • setStringValue

        public void setStringValue​(String value)
      • getType

        public int getType()
        Description copied from interface: ICell
        Returns one of IGrid.CELL_TYPE_* values.
        Specified by:
        getType in interface ICell
      • getNativeBoolean

        public boolean getNativeBoolean()
        Specified by:
        getNativeBoolean in interface ICell
      • getNativeNumber

        public double getNativeNumber()
        Specified by:
        getNativeNumber in interface ICell
      • getNativeType

        public int getNativeType()
        Specified by:
        getNativeType in interface ICell
        Returns:
        IGrid.CELL_TYPE... constant, in case of CELL_TYPE_FORMULA returns cached value type
      • hasNativeType

        public boolean hasNativeType()
        Specified by:
        hasNativeType in interface ICell
        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