|
||||||||||
| 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. Throws a ClassCastException if the value to convert is not a Boolean, or not a String for the reverse conversion.
| Method Summary | |
|---|---|
Object |
sourceValue(Object targetValue)
Converts the given String and sets the associated Boolean as the subject's new value. |
Object |
targetValue(Object sourceValue)
Converts the subject value to associated text representation. |
| 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)
targetValue in interface BindingConvertersourceValue - the subject's new value
ClassCastException - if the subject's value is not a Booleanpublic Object sourceValue(Object targetValue)
sourceValue in interface BindingConvertertargetValue - the value to be converted and set as new subject value
ClassCastException - if the new value is not a String
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 | |||||||||