public class PercentageStringConverter extends NumberStringConverter
StringConverter
implementation for Number
values
that represent percentages.
Constructor and Description |
---|
PercentageStringConverter() |
PercentageStringConverter(java.util.Locale locale) |
PercentageStringConverter(java.text.NumberFormat numberFormat) |
Modifier and Type | Method and Description |
---|---|
java.text.NumberFormat |
getNumberFormat()
Return a
NumberFormat instance to use for formatting
and parsing in this StringConverter . |
fromString, toString
public PercentageStringConverter()
public PercentageStringConverter(java.util.Locale locale)
public PercentageStringConverter(java.text.NumberFormat numberFormat)
public java.text.NumberFormat getNumberFormat()
Return a NumberFormat
instance to use for formatting
and parsing in this StringConverter
.
getNumberFormat
in class NumberStringConverter
Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.