|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.binding.value.ConverterFactory.FloatToIntegerConverter
public static final class ConverterFactory.FloatToIntegerConverter
Converts Floats to Integers and vice-versa.
| Method Summary | |
|---|---|
Object |
sourceValue(Object sourceValue)
Converts a Float using the multiplier and
sets it as new value. |
Object |
targetValue(Object sourceValue)
Converts the subject's value and returns a corresponding Integer using the multiplier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Object targetValue(Object sourceValue)
Integer using the multiplier.
targetValue in interface BindingConvertersourceValue - the subject's value
ClassCastException - if the subject value is not of type
Floatpublic Object sourceValue(Object sourceValue)
Float using the multiplier and
sets it as new value.
sourceValue in interface BindingConvertersourceValue - the Integer object that shall be converted
ClassCastException - if the new value is not of type
Integer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||