|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.sprig.jfree.function.ReportExpression org.norther.tammi.sprig.jfree.function.FormatExpression
public class FormatExpression
A format expression.
Constructor Summary | |
---|---|
FormatExpression()
Constructs a new expression. |
Method Summary | |
---|---|
Double |
change(Object value,
Object total)
Calculates the specified change. |
Number |
fixed(Object value)
Returns the object as a fixed number. |
String |
format(Date value,
String... pttrn)
Formats a date with a pattern. |
String |
format(Number value,
String... pttrn)
Formats a number with a pattern. |
String |
format(Object value,
String... pttrn)
Formats an object with a pattern. |
String |
format(String value,
String... bsnm)
Formats a string. |
String |
getBaseName()
Gets the base name. |
String |
getPattern()
Gets the pattern. |
protected int |
getPatternIndex()
Gets the pattern index. |
String |
getPatternName()
Gets the pattern name. |
Object |
getValue()
|
boolean |
isFixed()
Checks the fixed option. |
boolean |
isUnformatted()
Checks the unformatted option. |
protected void |
resetReferenceIndex()
Resets the the current reference index to update it during the next value retrieval. |
void |
setBaseName(String name)
Sets the base name. |
void |
setFixed(boolean flag)
Sets the fixed option. |
void |
setPattern(String str)
Sets the pattern. |
void |
setPatternName(String name)
Sets the pattern name. |
void |
setUnformatted(boolean flag)
Sets the unformatted option. |
Double |
share(Object value,
Object total)
Calculates the specified share. |
Methods inherited from class org.norther.tammi.sprig.jfree.function.ReportExpression |
---|
clone, concat, getAttribute, getDataRow, getDependencyLevel, getDescription, getDetail, getGroup, getInstance, getMaxValue, getMinValue, getName, getOperation, getOperationEnum, getReferenceIndex, getReferenceName, getReportConfiguration, getReportModel, getResourceBundleFactory, getRowIndex, getValue, getValue, getWordIndex, isActive, isDeepTraversing, isPreserve, setActive, setAttribute, setDependencyLevel, setMaxValue, setMinValue, setName, setOperation, setPreserve, setReferenceName, setRuntime, setWordIndex, toString, toStrings |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormatExpression()
Method Detail |
---|
public Object getValue()
getValue
in interface org.jfree.report.function.Expression
getValue
in class ReportExpression
public String getPattern()
public void setPattern(String str)
str
- the pattern.public String getPatternName()
public void setPatternName(String name)
name
- the pattern name.public String getBaseName()
public void setBaseName(String name)
name
- the base name.public boolean isFixed()
public void setFixed(boolean flag)
flag
- true for fixed numbers, false otherwise.public boolean isUnformatted()
public void setUnformatted(boolean flag)
flag
- true for unformatted, false otherwise.public Double change(Object value, Object total)
value
- the value.total
- the total.
public Double share(Object value, Object total)
value
- the value.total
- the total.
public Number fixed(Object value)
value
- the object.
public String format(Object value, String... pttrn)
value
- the object.pttrn
- the pattern.
public String format(String value, String... bsnm)
value
- the string.bsnm
- the base name.
public String format(Number value, String... pttrn)
value
- the number.pttrn
- the pattern.
public String format(Date value, String... pttrn)
value
- the date.pttrn
- the pattern.
protected void resetReferenceIndex()
ReportExpression
resetReferenceIndex
in class ReportExpression
protected int getPatternIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |