@JSFConverter(name="f:convertNumber",
bodyContent="empty",
tagClass="org.apache.myfaces.taglib.core.ConvertNumberTag")
@JSFJspProperty(name="binding",
returnType="jakarta.faces.convert.NumberConverter",
longDesc="A ValueExpression that evaluates to a NumberConverter.")
public class NumberConverter
extends Object
implements Converter, PartialStateHolder
| Modifier and Type | Field and Description |
|---|---|
static String |
CONVERTER_ID |
static String |
CURRENCY_ID |
static String |
NUMBER_ID |
static String |
PATTERN_ID |
static String |
PERCENT_ID |
static String |
STRING_ID |
DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME| Constructor and Description |
|---|
NumberConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearInitialState() |
Object |
getAsObject(FacesContext facesContext,
UIComponent uiComponent,
String value) |
String |
getAsString(FacesContext facesContext,
UIComponent uiComponent,
Object value) |
String |
getCurrencyCode()
ISO 4217 currency code
|
String |
getCurrencySymbol()
The currency symbol used to format a currency value.
|
Locale |
getLocale()
The name of the locale to be used, instead of the default as
specified in the faces configuration file.
|
int |
getMaxFractionDigits()
The maximum number of digits in the fractional portion of the number.
|
int |
getMaxIntegerDigits()
The maximum number of digits in the integer portion of the number.
|
int |
getMinFractionDigits()
The minimum number of digits in the fractional portion of the number.
|
int |
getMinIntegerDigits()
The minimum number of digits in the integer portion of the number.
|
String |
getPattern()
A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat.
|
String |
getType()
The type of formatting/parsing to be performed.
|
boolean |
initialStateMarked() |
boolean |
isGroupingUsed()
Specifies whether output will contain grouping separators.
|
boolean |
isIntegerOnly()
Specifies whether only the integer part of the input will be parsed.
|
boolean |
isTransient() |
void |
markInitialState() |
void |
restoreState(FacesContext facesContext,
Object state) |
Object |
saveState(FacesContext facesContext) |
void |
setCurrencyCode(String currencyCode) |
void |
setCurrencySymbol(String currencySymbol) |
void |
setGroupingUsed(boolean groupingUsed) |
void |
setIntegerOnly(boolean integerOnly) |
void |
setLocale(Locale locale) |
void |
setMaxFractionDigits(int maxFractionDigits) |
void |
setMaxIntegerDigits(int maxIntegerDigits) |
void |
setMinFractionDigits(int minFractionDigits) |
void |
setMinIntegerDigits(int minIntegerDigits) |
void |
setPattern(String pattern) |
void |
setTransient(boolean aTransient) |
void |
setType(String type) |
public static final String CONVERTER_ID
public static final String STRING_ID
public static final String CURRENCY_ID
public static final String NUMBER_ID
public static final String PATTERN_ID
public static final String PERCENT_ID
public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value)
getAsObject in interface Converterpublic String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
getAsString in interface Converterpublic void restoreState(FacesContext facesContext, Object state)
restoreState in interface StateHolderpublic Object saveState(FacesContext facesContext)
saveState in interface StateHolder@JSFProperty public String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
@JSFProperty public String getCurrencySymbol()
public void setCurrencySymbol(String currencySymbol)
@JSFProperty(deferredValueType="java.lang.Boolean") public boolean isGroupingUsed()
public void setGroupingUsed(boolean groupingUsed)
@JSFProperty(deferredValueType="java.lang.Boolean") public boolean isIntegerOnly()
public void setIntegerOnly(boolean integerOnly)
@JSFProperty(deferredValueType="java.lang.Object") public Locale getLocale()
public void setLocale(Locale locale)
@JSFProperty(deferredValueType="java.lang.Integer") public int getMaxFractionDigits()
public void setMaxFractionDigits(int maxFractionDigits)
@JSFProperty(deferredValueType="java.lang.Integer") public int getMaxIntegerDigits()
public void setMaxIntegerDigits(int maxIntegerDigits)
@JSFProperty(deferredValueType="java.lang.Integer") public int getMinFractionDigits()
public void setMinFractionDigits(int minFractionDigits)
@JSFProperty(deferredValueType="java.lang.Integer") public int getMinIntegerDigits()
public void setMinIntegerDigits(int minIntegerDigits)
@JSFProperty public String getPattern()
public void setPattern(String pattern)
public boolean isTransient()
isTransient in interface StateHolderpublic void setTransient(boolean aTransient)
setTransient in interface StateHolder@JSFProperty public String getType()
public void setType(String type)
public void clearInitialState()
clearInitialState in interface PartialStateHolderpublic boolean initialStateMarked()
initialStateMarked in interface PartialStateHolderpublic void markInitialState()
markInitialState in interface PartialStateHolderCopyright © 2022 The Apache Software Foundation. All rights reserved.