Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.translator
Class NumericFormatterImpl

    java.lang.Object
      org.apache.tapestry5.internal.translator.NumericFormatterImpl

All Implemented Interfaces:
  NumericFormatter

    public class NumericFormatterImpl

extends java.lang.Object
implements NumericFormatter

A wrapper around NumberFormat.

Since:
  5.1.0.1

Constructor Summary
`NumericFormatterImpl(java.text.NumberFormat format)`

Method Summary
`java.lang.Number` | `parse(java.lang.String clientValue)` Parses a value from the client in a locale-specific way.
`java.lang.String` | `toClient(java.lang.Number value)` Formats a value for the client in a locale-specific way.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NumericFormatterImpl

    public NumericFormatterImpl(java.text.NumberFormat format)

Method Detail

### parse

    public java.lang.Number parse(java.lang.String clientValue)
                           throws java.text.ParseException

  Description copied from interface: `NumericFormatter`
  Parses a value from the client in a locale-specific way.

  Specified by:
    `parse` in interface `NumericFormatter`
  Throws:
    `java.text.ParseException`

### toClient

    public java.lang.String toClient(java.lang.Number value)

  Description copied from interface: `NumericFormatter`
  Formats a value for the client in a locale-specific way.

  Specified by:
    `toClient` in interface `NumericFormatter`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.