|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.commerce.zocalo.NumberDisplay
public class NumberDisplay
support for displaying Numbers as prices, quantities, or scores. Understands how to format floating point numbers reasonably.
| Constructor Summary | |
|---|---|
NumberDisplay()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
printAsPrice(double price)
|
static java.lang.String |
printAsQuantity(double quant)
|
static java.lang.String |
printAsScore(double score)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberDisplay()
| Method Detail |
|---|
public static java.lang.String printAsPrice(double price)
public static java.lang.String printAsQuantity(double quant)
public static java.lang.String printAsScore(double score)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||