Spring Web Flow

org.springframework.binding.format
Class PercentNumberFormatFactory

java.lang.Object
  extended by org.springframework.binding.format.AbstractNumberFormatFactory
      extended by org.springframework.binding.format.PercentNumberFormatFactory
All Implemented Interfaces:
NumberFormatFactory

public class PercentNumberFormatFactory
extends AbstractNumberFormatFactory

Produces NumberFormat instances that format percent values.

Author:
Keith Donald
See Also:
NumberFormat

Constructor Summary
PercentNumberFormatFactory()
           
 
Method Summary
protected  java.text.NumberFormat getNumberFormat(java.util.Locale locale)
          Subclasses should override to create the new NumberFormat instance.
 
Methods inherited from class org.springframework.binding.format.AbstractNumberFormatFactory
getLocale, getNumberFormat, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentNumberFormatFactory

public PercentNumberFormatFactory()
Method Detail

getNumberFormat

protected java.text.NumberFormat getNumberFormat(java.util.Locale locale)
Description copied from class: AbstractNumberFormatFactory
Subclasses should override to create the new NumberFormat instance.

Specified by:
getNumberFormat in class AbstractNumberFormatFactory
Parameters:
locale - the locale to use
Returns:
the number format

Spring Web Flow