|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.beans.Model
com.jgoodies.binding.value.AbstractValueModel
com.jgoodies.binding.value.AbstractConverter
com.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.
Field Summary |
---|
Fields inherited from class com.jgoodies.binding.value.AbstractConverter |
---|
subject |
Fields inherited from class com.jgoodies.binding.value.AbstractValueModel |
---|
PROPERTYNAME_VALUE |
Method Summary | |
---|---|
java.lang.Object |
convertFromSubject(java.lang.Object subjectValue)
Converts the subject value to associated text representation. |
void |
setValue(java.lang.Object newValue)
Converts the given String and sets the associated Boolean as the subject's new value. |
Methods inherited from class com.jgoodies.binding.value.AbstractConverter |
---|
getValue, release |
Methods inherited from class com.jgoodies.binding.value.AbstractValueModel |
---|
addValueChangeListener, booleanValue, doubleValue, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, fireValueChange, floatValue, getString, intValue, longValue, removeValueChangeListener, setValue, setValue, setValue, setValue, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.Object convertFromSubject(java.lang.Object subjectValue)
convertFromSubject
in class AbstractConverter
subjectValue
- the subject's new value
java.lang.ClassCastException
- if the subject's value is not a Booleanpublic void setValue(java.lang.Object newValue)
newValue
- the value to be converted and set as new subject value
java.lang.ClassCastException
- if the new value is not a String
java.lang.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 |