com.jgoodies.binding.value
Class ConverterFactory.DoubleConverter

java.lang.Object
  extended by com.jgoodies.binding.value.ConverterFactory.DoubleConverter
All Implemented Interfaces:
BindingConverter<Double,Double>
Enclosing class:
ConverterFactory

public static final class ConverterFactory.DoubleConverter
extends Object
implements BindingConverter<Double,Double>

Converts Doubles using a given multiplier.


Method Summary
 Double sourceValue(Double targetValue)
          Converts a Double using the multiplier and sets it as new value.
 Double targetValue(Double sourceValue)
          Converts the subject's value and returns a corresponding Double using the multiplier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

targetValue

public Double targetValue(Double sourceValue)
Converts the subject's value and returns a corresponding Double using the multiplier.

Specified by:
targetValue in interface BindingConverter<Double,Double>
Parameters:
sourceValue - the subject's value
Returns:
the converted subjectValue

sourceValue

public Double sourceValue(Double targetValue)
Converts a Double using the multiplier and sets it as new value.

Specified by:
sourceValue in interface BindingConverter<Double,Double>
Parameters:
targetValue - the Double object that shall be converted
Returns:
the converted value


Copyright © 2002-2013 JGoodies Software GmbH. All Rights Reserved.