|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.value.ConverterFactory.LongToIntegerConverter
public static final class ConverterFactory.LongToIntegerConverter
Converts Longs to Integers and vice-versa.
Method Summary | |
---|---|
Object |
sourceValue(Object targetValue)
Converts an Integer to Long and sets it as new value. |
Object |
targetValue(Object sourceValue)
Converts the subject's value and returns a corresponding Integer . |
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
.
targetValue
in interface BindingConverter
sourceValue
- the subject's value
ClassCastException
- if sourceValue
is not of type
Float
public Object sourceValue(Object targetValue)
sourceValue
in interface BindingConverter
targetValue
- the Integer
object that represents
the percent value
ClassCastException
- if targetValue
is not of type
Integer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |