|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBiff
jet.report.xls.Blank
jet.report.xls.Formula
public class Formula
Description: Constant floating point number Record Body Length: 15 bytes Record Body Byte Structure: Byte Number Name Contents (hex) 0-1 rw Row 2-3 col Column 4-5 ixfe Index of Xf record 6-13 num Current value of formula(IEEE format) 14-15 grbit Option flags 16-19 chn 20-21 cce Length of the parsed expression 22- rgce Parsed expression A Formula class extends Blank class.
| Field Summary | |
|---|---|
static short |
ALWAYSCALC
|
static short |
CALCONLOAD
|
static short |
SHRFMLA
|
| Fields inherited from class jet.report.xls.Blank |
|---|
META |
| Constructor Summary | |
|---|---|
Formula(int row,
int col,
int ixfe,
double num,
short grbit,
byte[] rgce)
Constructs a Number record and sets its fields appropriately. |
|
Formula(int row,
int col,
int ixfe,
double num,
short grbit,
java.lang.String formulaStr)
Constructs a Number record and sets its fields appropriately. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFormulaStr()
get formula string . |
int |
getLength()
|
void |
input(RandomAccessStream stream)
input class Number from input stream |
boolean |
isAlwaysCalc()
get always calculate the formula string or not. |
boolean |
isCalcOnLoad()
get calculate the formula string when load it or not. |
boolean |
isShrFmla()
get the formula string is share formula or not. |
int |
opcode()
get the opcode of Number. |
int |
output(RandomAccessStream stream)
output class Number |
void |
setAlwaysCalc(boolean b)
set always calculate the formula string or not. |
void |
setCalcOnLoad(boolean b)
set calculate the formula string when load it or not. |
void |
setFormulaStr(java.lang.String str)
set formula string . |
void |
setShrFmla(boolean b)
set the formula string is share formula or not. |
| Methods inherited from class jet.report.xls.Blank |
|---|
getCol, getIxfe, getRow, setCol, setIxfe, setRow |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short ALWAYSCALC
public static final short CALCONLOAD
public static final short SHRFMLA
| Constructor Detail |
|---|
public Formula(int row,
int col,
int ixfe,
double num,
short grbit,
byte[] rgce)
row - The row number to locate the formula(based 0)col - The column number to locate the formula(based 0)ixfe - Index to the Xf recordnum - The current value of the formulagrbit - Option flags, ALWAYSCALC, CALCONLOAD, SHRFMLA or combine of themrgce - The byte array to express the formula.
public Formula(int row,
int col,
int ixfe,
double num,
short grbit,
java.lang.String formulaStr)
row - The row number to locate the formula(based 0)col - The column number to locate the formula(based 0)ixfe - Index to the Xf recordnum - The current value of the formulagrbit - Option flags, ALWAYSCALC, CALCONLOAD, SHRFMLA or combine of themformulaStr - The formula string (refer to excel formula).| Method Detail |
|---|
public final int opcode()
opcode in class Blank
public int output(RandomAccessStream stream)
throws java.io.IOException
output in class Blankjava.io.IOException
public void input(RandomAccessStream stream)
throws java.io.IOException
input in class Blankjava.io.IOExceptionpublic int getLength()
public void setFormulaStr(java.lang.String str)
public java.lang.String getFormulaStr()
public void setAlwaysCalc(boolean b)
b - Always calculate the formula string or notpublic boolean isAlwaysCalc()
public void setCalcOnLoad(boolean b)
b - Calculate the formula string when load it or notpublic boolean isCalcOnLoad()
public void setShrFmla(boolean b)
b - The formula string is share formula or not.public boolean isShrFmla()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||