org.apache.poi.hssf.record.formula
Class ReferencePtg
java.lang.Object
|
+--org.apache.poi.hssf.record.formula.Ptg
|
+--org.apache.poi.hssf.record.formula.ReferencePtg
- public class ReferencePtg
- extends Ptg
ReferencePtg - handles references (such as A1, A2, IA4)
- Author:
- Andrew C. Oliver (acoliver@apache.org)
Field Summary |
static byte |
sid
|
Constructor Summary |
|
ReferencePtg(byte[] data,
int offset)
Creates new ValueReferencePtg |
protected |
ReferencePtg(java.lang.String cellref)
Takes in a String represnetation of a cell reference and fills out the
numeric fields. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sid
public static final byte sid
ReferencePtg
protected ReferencePtg(java.lang.String cellref)
- Takes in a String represnetation of a cell reference and fills out the
numeric fields.
ReferencePtg
public ReferencePtg(byte[] data,
int offset)
- Creates new ValueReferencePtg
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
writeBytes
public void writeBytes(byte[] array,
int offset)
- Description copied from class:
Ptg
- write this Ptg to a byte array
- Overrides:
writeBytes
in class Ptg
setRow
public void setRow(short row)
getRow
public short getRow()
isRowRelative
public boolean isRowRelative()
setRowRelative
public void setRowRelative(boolean rel)
isColRelative
public boolean isColRelative()
setColRelative
public void setColRelative(boolean rel)
setColumnRaw
public void setColumnRaw(short col)
getColumnRaw
public short getColumnRaw()
setColumn
public void setColumn(short col)
getColumn
public short getColumn()
getSize
public int getSize()
- Overrides:
getSize
in class Ptg
toFormulaString
public java.lang.String toFormulaString()
- Description copied from class:
Ptg
- return a string representation of this token alone
- Overrides:
toFormulaString
in class Ptg
getDefaultOperandClass
public byte getDefaultOperandClass()
- Overrides:
getDefaultOperandClass
in class Ptg
Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.