public class ObjectBooleanConverter extends java.lang.Object implements Converter, java.io.Serializable
IGNORED_VALUE
Constructor and Description |
---|
ObjectBooleanConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
coerceToBean(java.lang.Object val,
Component comp,
BindContext ctx)
Given an object value and return whether it is a "true" object.
|
java.lang.Object |
coerceToUi(java.lang.Object val,
Component comp,
BindContext ctx)
Given a Boolean value and return associated "true" object if true; or "false" object if null or false
|
public java.lang.Object coerceToBean(java.lang.Object val, Component comp, BindContext ctx)
coerceToBean
in interface Converter
val
- the object to be checked if a true objectcomp
- associated Componentctx
- bind context for associate Binding
and extra parameter (e.g. true and false)public java.lang.Object coerceToUi(java.lang.Object val, Component comp, BindContext ctx)
coerceToUi
in interface Converter
val
- the boolean value to be checked.comp
- associate Componentctx
- bind context for associate Binding
and extra parameter (e.g. true and false)Copyright © 2005-2018 Potix Corporation. All Rights Reserved.