|
||||||||||
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.BooleanNegator
public static final class ConverterFactory.BooleanNegator
Negates Booleans leaving null unchanged. Maps Boolean.TRUE to Boolean.FALSE, Boolean.FALSE to Boolean.TRUE, and null to null.
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)
Negates Booleans leaving null unchanged. |
void |
setValue(java.lang.Object newValue)
Inverts the given Boolean and sets it 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 value to invert
java.lang.ClassCastException
- if the subject's value is not a Booleanpublic void setValue(java.lang.Object newValue)
newValue
- the value to be inverted and set as new subject value
java.lang.ClassCastException
- if the new value is not a Boolean
java.lang.IllegalArgumentException
- if the new value does neither match
the trueText nor the falseText
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |