org.rcfaces.core.converter
Class AbstractNumberConverter

java.lang.Object
  extended by javax.faces.convert.NumberConverter
      extended by org.rcfaces.core.converter.AbstractNumberConverter
All Implemented Interfaces:
StateHolder, Converter
Direct Known Subclasses:
ByteConverter, DoubleConverter, FloatConverter, IntegerConverter, LongConverter, ShortConverter

public class AbstractNumberConverter
extends NumberConverter

Version:
$Revision: 1.5 $ $Date: 2007/05/24 12:26:17 $
Author:
Olivier Oeuillot (latest modification by $Author: oeuillot $)

Field Summary
static Converter SINGLETON
           
 
Fields inherited from class javax.faces.convert.NumberConverter
CONVERTER_ID, CURRENCY_ID, NUMBER_ID, PATTERN_ID, PERCENT_ID, STRING_ID
 
Constructor Summary
AbstractNumberConverter()
           
 
Method Summary
 Object getAsObject(FacesContext context, UIComponent component, String value)
           
 String getAsString(FacesContext context, UIComponent component, Object value)
           
 Object getDefaultValue()
           
 void setDefaultValue(Number defaultValue)
           
 void setDefaultValue(String defaultValue)
           
 
Methods inherited from class javax.faces.convert.NumberConverter
getCurrencyCode, getCurrencySymbol, getLocale, getMaxFractionDigits, getMaxIntegerDigits, getMinFractionDigits, getMinIntegerDigits, getPattern, getType, isGroupingUsed, isIntegerOnly, isTransient, restoreState, saveState, setCurrencyCode, setCurrencySymbol, setGroupingUsed, setIntegerOnly, setLocale, setMaxFractionDigits, setMaxIntegerDigits, setMinFractionDigits, setMinIntegerDigits, setPattern, setTransient, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final Converter SINGLETON
Constructor Detail

AbstractNumberConverter

public AbstractNumberConverter()
Method Detail

getDefaultValue

public final Object getDefaultValue()

setDefaultValue

public final void setDefaultValue(String defaultValue)

setDefaultValue

public final void setDefaultValue(Number defaultValue)

getAsObject

public Object getAsObject(FacesContext context,
                          UIComponent component,
                          String value)
Specified by:
getAsObject in interface Converter
Overrides:
getAsObject in class NumberConverter

getAsString

public String getAsString(FacesContext context,
                          UIComponent component,
                          Object value)
Specified by:
getAsString in interface Converter
Overrides:
getAsString in class NumberConverter


Copyright © 2006-2011 Vedana. All Rights Reserved.