|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.component.lettertemplate.util.VariablesFormat.IbNumberFormat
Auxiliary class representing all number formatters.
Field Summary | |
(package private) java.text.NumberFormat |
formatter
Flavor of the baseFormatter used by
this formatter. |
(package private) java.lang.String |
leftNegative
Prefix to be added if number is negative |
(package private) java.lang.String |
leftPositive
Prefix to be added if number is positive |
(package private) java.lang.String |
rightNegative
Suffix to be added if number is negative |
(package private) java.lang.String |
rightPositive
Suffix to be added if number is positive |
(package private) VariablesFormat.MakeUpFormat |
rounder
Auxiliary object that trims figures to the right/left of the basic formatted string. |
(package private) boolean |
trimPeriod
|
Constructor Summary | |
VariablesFormat.IbNumberFormat(java.text.NumberFormat numFormat,
VariablesFormat.MakeUpFormat rounder)
Constructor. |
|
VariablesFormat.IbNumberFormat(java.text.NumberFormat numFormat,
VariablesFormat.MakeUpFormat rounder,
java.lang.String rNeg,
java.lang.String lPos,
boolean trimPeriod)
Constructor. |
Method Summary | |
java.lang.String |
format(double dval)
Formats a double value. |
java.lang.String |
format(long lval)
Formats a long value. |
void |
setLeftNegative(java.lang.String s)
Sets the leftNegative attribute of the IbNumberFormat object |
void |
setLeftPositive(java.lang.String s)
Sets the leftPositive attribute of the IbNumberFormat object |
void |
setRightNegative(java.lang.String s)
Sets the rightNegative attribute of the IbNumberFormat object |
void |
setRightPositive(java.lang.String s)
Sets the rightPositive attribute of the IbNumberFormat object |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.text.NumberFormat formatter
baseFormatter
used by
this formatter.VariablesFormat.MakeUpFormat rounder
boolean trimPeriod
java.lang.String rightNegative
java.lang.String leftPositive
java.lang.String rightPositive
java.lang.String leftNegative
Constructor Detail |
public VariablesFormat.IbNumberFormat(java.text.NumberFormat numFormat, VariablesFormat.MakeUpFormat rounder)
numFormat
- Basic number format.rounder
- Auxiliary Rounder.public VariablesFormat.IbNumberFormat(java.text.NumberFormat numFormat, VariablesFormat.MakeUpFormat rounder, java.lang.String rNeg, java.lang.String lPos, boolean trimPeriod)
numFormat
- Basic number format.rounder
- Auxiliary Rounder.rNeg
- Suffix if negative number.lPos
- Prefix if positive number.trimPeriod
- Decimal period should be deleted?Method Detail |
public void setLeftPositive(java.lang.String s)
s
- The new leftPositive valuepublic void setLeftNegative(java.lang.String s)
s
- The new leftNegative valuepublic void setRightPositive(java.lang.String s)
s
- The new rightPositive valuepublic void setRightNegative(java.lang.String s)
s
- The new rightNegative valuepublic java.lang.String format(long lval)
lval
- The value to be formated.public java.lang.String format(double dval)
dval
- The value to be formated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |