net.sf.jxls.formula
Class CellRef
java.lang.Object
net.sf.jxls.formula.CellRef
public class CellRef
- extends java.lang.Object
- Author:
- Leonid Vysochyn
|
Method Summary |
java.lang.Integer |
getCellIndex()
|
short |
getColNum()
|
int |
getRowNum()
|
java.lang.String |
getSheetName()
|
static java.lang.String |
replaceFormulaPart(java.lang.String formulaPart,
java.lang.String refCell,
java.lang.String newCell)
Ref cell in a formula string is replaced with result cell enclosed with replacement markers to be able not to replace
already replaced cells |
void |
setCellIndex(java.lang.Integer cellIndex)
|
java.lang.String |
toString()
|
void |
update(java.util.List newCellRefs)
|
void |
update(java.lang.String newCellRef)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
regexCellCharPart
protected static final java.lang.String regexCellCharPart
- See Also:
- Constant Field Values
regexCellDigitPart
protected static final java.lang.String regexCellDigitPart
- See Also:
- Constant Field Values
cellRangeSeparator
protected static java.lang.String cellRangeSeparator
CellRef
public CellRef(java.lang.String cellRef,
FormulaPart parentFormula)
CellRef
public CellRef(CellRef ref,
FormulaPart parentFormula)
getSheetName
public java.lang.String getSheetName()
getRowNum
public int getRowNum()
getColNum
public short getColNum()
getCellIndex
public java.lang.Integer getCellIndex()
setCellIndex
public void setCellIndex(java.lang.Integer cellIndex)
update
public void update(java.lang.String newCellRef)
update
public void update(java.util.List newCellRefs)
replaceFormulaPart
public static java.lang.String replaceFormulaPart(java.lang.String formulaPart,
java.lang.String refCell,
java.lang.String newCell)
- Ref cell in a formula string is replaced with result cell enclosed with replacement markers to be able not to replace
already replaced cells
- Parameters:
formulaPart - - Part of the formula to replacerefCell - - Cell name to replacenewCell - - New cell name after replacement
- Returns:
- updated formula string
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2005-2013 jXLS Team. All Rights Reserved.