com.jgoodies.binding.value
Class ConverterFactory.FloatConverter

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

public static final class ConverterFactory.FloatConverter
extends Object
implements BindingConverter<Float,Float>

Converts Floats using a given multiplier.


Method Summary
 Float sourceValue(Float targetValue)
          Converts a Float using the multiplier and sets it as new value.
 Float targetValue(Float sourceValue)
          Converts the subject's value and returns a corresponding Float 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 Float targetValue(Float sourceValue)
Converts the subject's value and returns a corresponding Float using the multiplier.

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

sourceValue

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

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


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