public class PerunageConverter extends Object implements javax.faces.convert.Converter, Serializable
Constructor and Description |
---|
PerunageConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
String value)
Converts the supplied String value to 1% of the supplied value.
|
String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
Object perunage)
Converts the supplied perunage to a percentage.
|
public Object getAsObject(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, String value)
getAsObject
in interface javax.faces.convert.Converter
facesContext
- Faces Context.component
- The UI component that stores the value.value
- The value to convert.public String getAsString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object perunage)
getAsString
in interface javax.faces.convert.Converter
facesContext
- Faces Context.component
- The UI component that stores the unmasked value.perunage
- The perunage to convert to a percentage.Number
.Copyright © 2008–2018. All rights reserved.