|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.value.ConverterFactory.BooleanToStringConverter
public static final class ConverterFactory.BooleanToStringConverter
Converts Booleans to Strings and vice-versa using given texts for true, false, and null.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String targetValue(Boolean sourceValue)
targetValue
in interface BindingConverter<Boolean,String>
sourceValue
- the value to convert
public Boolean sourceValue(String targetValue)
sourceValue
in interface BindingConverter<Boolean,String>
targetValue
- the value to convert
IllegalArgumentException
- if the new value does neither match
the trueText nor the falseText nor the nullText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |