Class TextInputControl.NumberInputConverter

java.lang.Object
org.apache.empire.jsf2.controls.TextInputControl.NumberInputConverter
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.convert.Converter
Enclosing class:
TextInputControl

public static class TextInputControl.NumberInputConverter extends Object implements javax.faces.convert.Converter, javax.faces.component.StateHolder
NumberInputConverter Formats a decimal value based on the NumberFormat
  • Constructor Details

    • NumberInputConverter

      public NumberInputConverter()
    • NumberInputConverter

      public NumberInputConverter(NumberFormat nf)
  • Method Details

    • saveState

      public Object saveState(javax.faces.context.FacesContext context)
      Specified by:
      saveState in interface javax.faces.component.StateHolder
    • restoreState

      public void restoreState(javax.faces.context.FacesContext context, Object state)
      Specified by:
      restoreState in interface javax.faces.component.StateHolder
    • isTransient

      public boolean isTransient()
      Specified by:
      isTransient in interface javax.faces.component.StateHolder
    • setTransient

      public void setTransient(boolean newTransientValue)
      Specified by:
      setTransient in interface javax.faces.component.StateHolder
    • getAsString

      public String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
      Specified by:
      getAsString in interface javax.faces.convert.Converter
    • getAsObject

      public Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
      Specified by:
      getAsObject in interface javax.faces.convert.Converter