public class NumberConverter extends Object implements javax.faces.convert.Converter, G9Converter, javax.faces.component.PartialStateHolder
| Constructor and Description |
|---|
NumberConverter()
Create a new number converter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearInitialState() |
Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String value) |
String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
String |
getDataType() |
String |
getDisplayRule() |
int |
getInputLength() |
Boolean |
getIsG9Numeric() |
int |
getScale() |
int |
getStoredLength() |
String |
getTitle() |
boolean |
initialStateMarked() |
boolean |
isBlankWhenZero() |
boolean |
isTransient() |
void |
markInitialState() |
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setBlankWhenZero(boolean blankWhenZero) |
void |
setDataType(String dataType)
Set the data type.
|
void |
setDisplayRule(String displayRule)
Set the display rule.
|
void |
setInputLength(int inputLength) |
void |
setIsG9Numeric(Boolean isG9Numeric) |
void |
setScale(int scale) |
void |
setStoredLength(int storedLength) |
void |
setTitle(String title) |
void |
setTransient(boolean transientFlag) |
public Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
getAsObject in interface javax.faces.convert.Converterpublic String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
getAsString in interface javax.faces.convert.Converterpublic String getDataType()
getDataType in interface G9Converterpublic void setDataType(String dataType)
setDataType in interface G9ConverterdataType - the name of the data type.public String getDisplayRule()
getDisplayRule in interface G9Converterpublic void setDisplayRule(String displayRule)
setDisplayRule in interface G9ConverterdisplayRule - the display rule to set.public int getInputLength()
public void setInputLength(int inputLength)
inputLength - the inputLength to set.public int getStoredLength()
public void setStoredLength(int storedLength)
storedLength - the storedLength to set.public int getScale()
public void setScale(int scale)
scale - the scale to set.public boolean isBlankWhenZero()
public void setBlankWhenZero(boolean blankWhenZero)
blankWhenZero - the blankWhenZero to set.public Boolean getIsG9Numeric()
public void setIsG9Numeric(Boolean isG9Numeric)
public String getTitle()
getTitle in interface G9Converterpublic void setTitle(String title)
setTitle in interface G9Convertertitle - the title to setpublic Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolderpublic void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderpublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean transientFlag)
setTransient in interface javax.faces.component.StateHolderpublic void markInitialState()
markInitialState in interface javax.faces.component.PartialStateHolderpublic boolean initialStateMarked()
initialStateMarked in interface javax.faces.component.PartialStateHolderpublic void clearInitialState()
clearInitialState in interface javax.faces.component.PartialStateHolderCopyright © 2006–2017 Esito AS. All rights reserved.