|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.myfaces.commons.converter.ConverterBase
org.apache.myfaces.commons.converter.AbstractTypedNumberConverter
org.apache.myfaces.commons.converter.TypedNumberConverter
public class TypedNumberConverter
| Field Summary | |
|---|---|
static java.lang.String |
CONVERTER_ID
|
| Fields inherited from class org.apache.myfaces.commons.converter.AbstractTypedNumberConverter |
|---|
CURRENCY_ID, NUMBER_ID, PATTERN_ID, PERCENT_ID, STRING_ID |
| Constructor Summary | |
|---|---|
TypedNumberConverter()
|
|
| Method Summary | |
|---|---|
java.lang.Integer |
getMaxFractionDigits()
The maximum number of digits in the fractional portion of the number. |
java.lang.Integer |
getMaxIntegerDigits()
The maximum number of digits in the integer portion of the number. |
java.lang.Integer |
getMinFractionDigits()
The minimum number of digits in the fractional portion of the number. |
java.lang.Integer |
getMinIntegerDigits()
The minimum number of digits in the integer portion of the number. |
java.lang.String |
getPattern()
A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat. |
java.lang.String |
getType()
The type of formatting/parsing to be performed. |
boolean |
isGroupingUsed()
Specifies whether output will contain grouping separators. |
boolean |
isIntegerOnly()
Specifies whether only the integer part of the input will be parsed. |
void |
restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setGroupingUsed(boolean groupingUsed)
|
void |
setIntegerOnly(boolean integerOnly)
|
void |
setMaxFractionDigits(java.lang.Integer maxFractionDigits)
|
void |
setMaxIntegerDigits(java.lang.Integer maxIntegerDigits)
|
void |
setMinFractionDigits(java.lang.Integer minFractionDigits)
|
void |
setMinIntegerDigits(java.lang.Integer minIntegerDigits)
|
void |
setPattern(java.lang.String pattern)
|
void |
setType(java.lang.String type)
|
| Methods inherited from class org.apache.myfaces.commons.converter.AbstractTypedNumberConverter |
|---|
_getAsObject, _restoreState, _saveState, getAsObject, getAsString, getCurrencyCode, getCurrencySymbol, getDestType, getLocalCurrencyCode, getLocalCurrencySymbol, getLocale, isTransient, setCurrencyCode, setCurrencySymbol, setDestType, setLocale, setTransient |
| Methods inherited from class org.apache.myfaces.commons.converter.ConverterBase |
|---|
getDetailMessage, getFacesContext, getFacesMessage, getStringValue, getSummaryMessage, getValueExpression, restoreAttachedState, saveAttachedState, setDetailMessage, setSummaryMessage, setValueExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONVERTER_ID
| Constructor Detail |
|---|
public TypedNumberConverter()
| Method Detail |
|---|
public boolean isGroupingUsed()
AbstractTypedNumberConverter
isGroupingUsed in class AbstractTypedNumberConverterpublic void setGroupingUsed(boolean groupingUsed)
public boolean isIntegerOnly()
AbstractTypedNumberConverter
isIntegerOnly in class AbstractTypedNumberConverterpublic void setIntegerOnly(boolean integerOnly)
public java.lang.Integer getMaxFractionDigits()
AbstractTypedNumberConverter
getMaxFractionDigits in class AbstractTypedNumberConverterpublic void setMaxFractionDigits(java.lang.Integer maxFractionDigits)
public java.lang.Integer getMaxIntegerDigits()
AbstractTypedNumberConverter
getMaxIntegerDigits in class AbstractTypedNumberConverterpublic void setMaxIntegerDigits(java.lang.Integer maxIntegerDigits)
public java.lang.Integer getMinFractionDigits()
AbstractTypedNumberConverter
getMinFractionDigits in class AbstractTypedNumberConverterpublic void setMinFractionDigits(java.lang.Integer minFractionDigits)
public java.lang.Integer getMinIntegerDigits()
AbstractTypedNumberConverter
getMinIntegerDigits in class AbstractTypedNumberConverterpublic void setMinIntegerDigits(java.lang.Integer minIntegerDigits)
public java.lang.String getPattern()
AbstractTypedNumberConverter
getPattern in class AbstractTypedNumberConverterpublic void setPattern(java.lang.String pattern)
public java.lang.String getType()
AbstractTypedNumberConverter
getType in class AbstractTypedNumberConverterpublic void setType(java.lang.String type)
public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
saveState in interface javax.faces.component.StateHoldersaveState in class AbstractTypedNumberConverter
public void restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class AbstractTypedNumberConverter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||