Package jxl.write

Class Blank

  • All Implemented Interfaces:
    jxl.biff.ByteData, Cell, WritableCell

    public class Blank
    extends jxl.write.biff.BlankRecord
    implements WritableCell
    A blank cell. Despite not having any contents, it may contain formatting information. Such cells are typically used when creating templates
    • Constructor Summary

      Constructors 
      Constructor Description
      Blank​(int c, int r)
      Creates a cell which, when added to the sheet, will be presented at the specified column and row co-ordinates
      Blank​(int c, int r, CellFormat st)
      Creates a cell which, when added to the sheet, will be presented at the specified column and row co-ordinates in the manner specified by the CellFormat parameter
      Blank​(Cell lc)
      Constructor used internally by the application when making a writable copy of a spreadsheet being read in
    • Constructor Detail

      • Blank

        public Blank​(int c,
                     int r)
        Creates a cell which, when added to the sheet, will be presented at the specified column and row co-ordinates
        Parameters:
        c - the column
        r - the row
      • Blank

        public Blank​(int c,
                     int r,
                     CellFormat st)
        Creates a cell which, when added to the sheet, will be presented at the specified column and row co-ordinates in the manner specified by the CellFormat parameter
        Parameters:
        c - the column
        r - the row
        st - the cell format
      • Blank

        public Blank​(Cell lc)
        Constructor used internally by the application when making a writable copy of a spreadsheet being read in
        Parameters:
        lc - the cell to copy
    • Method Detail

      • copyTo

        public WritableCell copyTo​(int col,
                                   int row)
        Implementation of the deep copy function
        Specified by:
        copyTo in interface WritableCell
        Parameters:
        col - the column which the new cell will occupy
        row - the row which the new cell will occupy
        Returns:
        a copy of this cell, which can then be added to the sheet