|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cinecolombia.common.utilcomponents.ColNumberFormat
Constructor de formateadores de números, al estilo colombiano.
Field Summary | |
private java.text.DecimalFormat |
cnf
Formateador por defecto. |
private static java.util.Locale |
colombia
Información local para Colombia. |
Constructor Summary | |
ColNumberFormat()
Construye un formateador de números con las convenciones mínimas para Colombia |
Method Summary | |
static java.lang.String |
debug(java.text.DecimalFormat df)
Calcula una cadena de caracteres con los valores de los parámetros claves de un objeto DecimalFormat. |
static java.text.DecimalFormat |
getCurrencyFormat()
Calcula un formateador para dinero. |
static java.text.DecimalFormat |
getCurrencyFormat(int pos)
Calcula un formateador de dinero con un número fijo de posiciones decimales. |
static void |
main(java.lang.String[] args)
Método main para testing. |
static long |
parseToLong(java.lang.String strVal,
int pos)
Parsea una cadena y la convierte en un valor long "equivalente" sin cifras decimales. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.Locale colombia
private java.text.DecimalFormat cnf
Constructor Detail |
public ColNumberFormat()
Method Detail |
public static java.text.DecimalFormat getCurrencyFormat()
public static java.text.DecimalFormat getCurrencyFormat(int pos)
pos
- Número de posiciones decimales.public static void main(java.lang.String[] args)
public static long parseToLong(java.lang.String strVal, int pos) throws java.text.ParseException
strVal
- La cadenapos
- El maximo de posiciones decimales.
java.text.ParseException
public static java.lang.String debug(java.text.DecimalFormat df)
df
- Description of the Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |