Home » JCraft » jxl » write » biff » [javadoc | source]
jxl.write.biff
class: ReadFormulaRecord [javadoc | source]
java.lang.Object
   jxl.biff.RecordData
      jxl.biff.WritableRecordData
         jxl.write.biff.CellValue
            jxl.write.biff.ReadFormulaRecord

All Implemented Interfaces:
    FormulaData, WritableCell, ByteData

Direct Known Subclasses:
    ReadBooleanFormulaRecord, ReadDateFormulaRecord, ReadStringFormulaRecord, ReadNumberFormulaRecord, ReadErrorFormulaRecord

A formula record. This is invoked when copying a formula from a read only spreadsheet This method implements the FormulaData interface to allow the copying of writable sheets
Fields inherited from jxl.biff.WritableRecordData:
maxRecordLength
Constructor:
 protected ReadFormulaRecord(FormulaData f) 
    Constructor
    Parameters:
    f - the formula to copy
Method from jxl.write.biff.ReadFormulaRecord Summary:
columnInserted,   columnRemoved,   copyTo,   getCellData,   getContents,   getData,   getFormula,   getFormulaBytes,   getFormulaData,   getReadFormula,   getType,   handleFormulaException,   handleImportedCellReferences,   rowInserted,   rowRemoved,   setCellDetails
Methods from jxl.write.biff.CellValue:
addCellFeatures,   columnInserted,   columnRemoved,   decrementColumn,   decrementRow,   getCellFeatures,   getCellFormat,   getColumn,   getData,   getRow,   getSheet,   getWritableCellFeatures,   getXFIndex,   incrementColumn,   incrementRow,   isHidden,   isReferenced,   removeCellFeatures,   removeComment,   removeDataValidation,   rowInserted,   rowRemoved,   setCellDetails,   setCellFeatures,   setCellFormat,   setCopied
Methods from jxl.biff.WritableRecordData:
getBytes,   getData
Methods from jxl.biff.RecordData:
getCode,   getRecord
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.write.biff.ReadFormulaRecord Detail:
  void columnInserted(Sheet s,
    int sheetIndex,
    int col) 
    Called when a column is inserted on the specified sheet. Notifies all RCIR cells of this change. The default implementation here does nothing
  void columnRemoved(Sheet s,
    int sheetIndex,
    int col) 
    Called when a column is removed on the specified sheet. Notifies all RCIR cells of this change. The default implementation here does nothing
 public WritableCell copyTo(int col,
    int row) 
    Implementation of the deep copy function
 protected final byte[] getCellData() 
 public String getContents() 
    Quick and dirty function to return the contents of this cell as a string.
 public byte[] getData() 
    Gets the binary data for output to file
 public String getFormula() throws FormulaException 
    Accessor for the read formula
 public byte[] getFormulaBytes() throws FormulaException 
    Gets the formula bytes
 public byte[] getFormulaData() throws FormulaException 
    Gets the raw bytes for the formula. This will include the parsed tokens array. Used when copying spreadsheets
 protected FormulaData getReadFormula() 
    Accessor for the read formula
 public CellType getType() 
    Returns the content type of this cell
 protected byte[] handleFormulaException() 
    An exception has occurred, so produce some appropriate dummy cell contents. This may be overridden by subclasses if they require specific handling
 public boolean handleImportedCellReferences(ExternalSheet es,
    WorkbookMethods mt,
    WorkbookSettings ws) 
    If this formula was on an imported sheet, check that cell references to another sheet are warned appropriately
  void rowInserted(Sheet s,
    int sheetIndex,
    int row) 
    Called when a row is inserted on the specified sheet. Notifies all RCIR cells of this change. The default implementation here does nothing
  void rowRemoved(Sheet s,
    int sheetIndex,
    int row) 
    Called when a row is inserted on the specified sheet. Notifies all RCIR cells of this change. The default implementation here does nothing
  void setCellDetails(FormattingRecords fr,
    SharedStrings ss,
    WritableSheetImpl s) 
    Overrides the method in the base class to add this to the Workbook's list of maintained formulas