org.vostok.vaadin.addon.button.spin
Class DecimalConverter

java.lang.Object
  extended by org.vostok.vaadin.addon.button.spin.DecimalConverter
All Implemented Interfaces:
com.vaadin.data.util.converter.Converter<java.lang.String,java.lang.Double>, java.io.Serializable

Deprecated.

@Deprecated
public class DecimalConverter
extends java.lang.Object
implements com.vaadin.data.util.converter.Converter<java.lang.String,java.lang.Double>

convenience converter for decimal number. Separator can be decimal point or comma.
Note : to be used with double / NumberModel, regular usage. If you need precision you must implement your own model / converter with appropiate type.

Author:
levreau.jerome@vostoksystem.eu
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.data.util.converter.Converter
com.vaadin.data.util.converter.Converter.ConversionException
 
Constructor Summary
DecimalConverter()
          Deprecated. Default converter, strict format, no erro message
DecimalConverter(boolean soft, java.lang.String message)
          Deprecated.  
 
Method Summary
 java.lang.Double convertToModel(java.lang.String value, java.lang.Class<? extends java.lang.Double> targetType, java.util.Locale locale)
          Deprecated.  
 java.lang.String convertToPresentation(java.lang.Double value, java.lang.Class<? extends java.lang.String> targetType, java.util.Locale locale)
          Deprecated.  
 java.lang.Class<java.lang.Double> getModelType()
          Deprecated.  
 java.lang.Class<java.lang.String> getPresentationType()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecimalConverter

public DecimalConverter()
Deprecated. 
Default converter, strict format, no erro message


DecimalConverter

public DecimalConverter(boolean soft,
                        java.lang.String message)
Deprecated. 
Parameters:
soft - if true accept any king of string and will extract the first length of digit from it. If false (default) require a plain number. Might still have trailing space.
message -
Method Detail

convertToModel

public java.lang.Double convertToModel(java.lang.String value,
                                       java.lang.Class<? extends java.lang.Double> targetType,
                                       java.util.Locale locale)
                                throws com.vaadin.data.util.converter.Converter.ConversionException
Deprecated. 
Specified by:
convertToModel in interface com.vaadin.data.util.converter.Converter<java.lang.String,java.lang.Double>
Throws:
com.vaadin.data.util.converter.Converter.ConversionException

convertToPresentation

public java.lang.String convertToPresentation(java.lang.Double value,
                                              java.lang.Class<? extends java.lang.String> targetType,
                                              java.util.Locale locale)
                                       throws com.vaadin.data.util.converter.Converter.ConversionException
Deprecated. 
Specified by:
convertToPresentation in interface com.vaadin.data.util.converter.Converter<java.lang.String,java.lang.Double>
Throws:
com.vaadin.data.util.converter.Converter.ConversionException

getModelType

public java.lang.Class<java.lang.Double> getModelType()
Deprecated. 
Specified by:
getModelType in interface com.vaadin.data.util.converter.Converter<java.lang.String,java.lang.Double>

getPresentationType

public java.lang.Class<java.lang.String> getPresentationType()
Deprecated. 
Specified by:
getPresentationType in interface com.vaadin.data.util.converter.Converter<java.lang.String,java.lang.Double>