public static final class ConverterFactory.BooleanToStringConverter extends Object implements BindingConverter<Boolean,String>
Modifier and Type | Method and Description |
---|---|
Boolean |
sourceValue(String targetValue)
Converts the given String and sets the associated Boolean as
the subject's new value.
|
String |
targetValue(Boolean sourceValue)
Returns the source value's associated text representation.
|
public String targetValue(Boolean sourceValue)
targetValue
in interface BindingConverter<Boolean,String>
sourceValue
- the value to convertpublic Boolean sourceValue(String targetValue)
sourceValue
in interface BindingConverter<Boolean,String>
targetValue
- the value to convertIllegalArgumentException
- if the new value does neither match
the trueText nor the falseText nor the nullTextCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.