|
|||||||||
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
|
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, getValueBinding, restoreAttachedState, saveAttachedState, setDetailMessage, setSummaryMessage, setValueBinding |
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 AbstractTypedNumberConverter
public void setGroupingUsed(boolean groupingUsed)
public boolean isIntegerOnly()
AbstractTypedNumberConverter
isIntegerOnly
in class AbstractTypedNumberConverter
public void setIntegerOnly(boolean integerOnly)
public java.lang.Integer getMaxFractionDigits()
AbstractTypedNumberConverter
getMaxFractionDigits
in class AbstractTypedNumberConverter
public void setMaxFractionDigits(java.lang.Integer maxFractionDigits)
public java.lang.Integer getMaxIntegerDigits()
AbstractTypedNumberConverter
getMaxIntegerDigits
in class AbstractTypedNumberConverter
public void setMaxIntegerDigits(java.lang.Integer maxIntegerDigits)
public java.lang.Integer getMinFractionDigits()
AbstractTypedNumberConverter
getMinFractionDigits
in class AbstractTypedNumberConverter
public void setMinFractionDigits(java.lang.Integer minFractionDigits)
public java.lang.Integer getMinIntegerDigits()
AbstractTypedNumberConverter
getMinIntegerDigits
in class AbstractTypedNumberConverter
public void setMinIntegerDigits(java.lang.Integer minIntegerDigits)
public java.lang.String getPattern()
AbstractTypedNumberConverter
getPattern
in class AbstractTypedNumberConverter
public void setPattern(java.lang.String pattern)
public java.lang.String getType()
AbstractTypedNumberConverter
getType
in class AbstractTypedNumberConverter
public void setType(java.lang.String type)
public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
saveState
in interface javax.faces.component.StateHolder
saveState
in class AbstractTypedNumberConverter
public void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class AbstractTypedNumberConverter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |