|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Formula
This interface is implemented by all Formula objects. A formula is used by table filters to calculate data. At beginning of the filtering process, reset() is called on every formula object associated with the filter, then addValue() is called zero or more times to add the data items. At the end, getResult() is called to retrieve the calculated value.
| Field Summary | |
|---|---|
static String |
__NULL__
Set the null as a special string. |
| Method Summary | |
|---|---|
void |
addValue(double v)
Add a double value to the formula. |
void |
addValue(double[] vs)
Add double values to the formula. |
void |
addValue(float v)
Add a float value to the formula. |
void |
addValue(int v)
Add an int value to the formula. |
void |
addValue(long v)
Add a long value to the formula. |
void |
addValue(Object v)
Add a value to the formula. |
void |
addValue(short v)
Add a short value to the formula. |
Object |
clone()
Clone this formula. |
String |
getDisplayName()
Get formula display name. |
double |
getDoubleResult()
Get the formula result. |
String |
getName()
Get formula name. |
Object |
getResult()
Get the formula result. |
boolean |
isDefaultResult()
Get the default result option of this formula. |
void |
reset()
Reset the formula to start over. |
void |
setDefaultResult(boolean def)
Set the default result option of this formula. |
| Field Detail |
|---|
static final String __NULL__
| Method Detail |
|---|
void reset()
void addValue(Object v)
void addValue(double v)
void addValue(double[] vs)
void addValue(float v)
void addValue(long v)
void addValue(int v)
void addValue(short v)
Object getResult()
double getDoubleResult()
Object clone()
String getDisplayName()
String getName()
boolean isDefaultResult()
void setDefaultResult(boolean def)
def - true to use the default value of a formula if no
result, false to just return null.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||