public class ObjectBooleanConverter extends Object implements Converter, Serializable
IGNORED_VALUE| Constructor and Description |
|---|
ObjectBooleanConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
coerceToBean(Object val,
org.zkoss.zk.ui.Component comp,
BindContext ctx)
Given an object value and return whether it is a "true" object.
|
Object |
coerceToUi(Object val,
org.zkoss.zk.ui.Component comp,
BindContext ctx)
Given a Boolean value and return associated "true" object if true; or "false" object if null or false
|
public Object coerceToBean(Object val, org.zkoss.zk.ui.Component comp, BindContext ctx)
coerceToBean in interface Converterval - 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 Object coerceToUi(Object val, org.zkoss.zk.ui.Component comp, BindContext ctx)
coerceToUi in interface Converterval - the boolean value to be checked.comp - associate Componentctx - bind context for associate Binding and extra parameter (e.g. true and false)Copyright © 2020. All rights reserved.