|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.value.ConverterFactory.StringConverter
public static final class ConverterFactory.StringConverter
Converts Values to Strings and vice-versa using a given Format.
Method Summary | |
---|---|
Object |
sourceValue(String targetValue)
Parses the given String encoding and returns the parsed object. |
String |
targetValue(Object sourceValue)
Formats the source value and returns a String representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String targetValue(Object sourceValue)
targetValue
in interface BindingConverter<Object,String>
sourceValue
- the source value
public Object sourceValue(String targetValue)
ParseException
s are re-thrown as IllegalArgumentException.
sourceValue
in interface BindingConverter<Object,String>
targetValue
- the value to be converted and set as new subject value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |