Save This Page
Home » jexcelapi_2_6_8 » jxl.biff.formula » [javadoc | source]
jxl.biff.formula
class: CellReference [javadoc | source]
java.lang.Object
   jxl.biff.formula.ParseItem
      jxl.biff.formula.Operand
         jxl.biff.formula.CellReference

All Implemented Interfaces:
    ParsedThing

A cell reference in a formula
Constructor:
 public CellReference() 
 public CellReference(Cell rt) 
    Constructor
    Parameters:
    rt - the cell containing the formula
 public CellReference(String s) 
    Constructor invoked when parsing a text string
    Parameters:
    s - the string being parsed
Method from jxl.biff.formula.CellReference Summary:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getColumn,   getRow,   getString,   handleImportedCellReferences,   read,   rowInserted,   rowRemoved
Methods from jxl.biff.formula.Operand:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   rowInserted,   rowRemoved
Methods from jxl.biff.formula.ParseItem:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getString,   handleImportedCellReferences,   isValid,   isVolatile,   rowInserted,   rowRemoved,   setAlternateCode,   setInvalid,   setParent,   setVolatile,   useAlternateCode
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.formula.CellReference Detail:
 public  void adjustRelativeCellReferences(int colAdjust,
    int rowAdjust) 
    Adjusts all the relative cell references in this formula by the amount specified. Used when copying formulas
 public  void columnInserted(int sheetIndex,
    int col,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column
  void columnRemoved(int sheetIndex,
    int col,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column
 byte[] getBytes() 
    Gets the token representation of this item in RPN
 public int getColumn() 
    Accessor for the column
 public int getRow() 
    Accessor for the row
 public  void getString(StringBuffer buf) 
    Gets the cell reference as a string for this item
  void handleImportedCellReferences() 
    If this formula was on an imported sheet, check that cell references to another sheet are warned appropriately Flags the formula as invalid Does nothing here
 public int read(byte[] data,
    int pos) 
    Reads the ptg data from the array starting at the specified position
  void rowInserted(int sheetIndex,
    int r,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column
  void rowRemoved(int sheetIndex,
    int r,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column