public interface BindEvaluatorX
extends org.zkoss.zk.xel.Evaluator
Evaluator
to have more control to handle Binding via EL.
With BindEvaluatorX
, you are allow to parse a Method expression or set value into property
resolved by the provided expression.
Modifier and Type | Method and Description |
---|---|
Class<?> |
getType(BindContext ctx,
org.zkoss.zk.ui.Component comp,
org.zkoss.xel.ExpressionX expression)
Returns the result type of the specified expression.
|
Object |
getValue(BindContext ctx,
org.zkoss.zk.ui.Component comp,
org.zkoss.xel.ExpressionX expression)
Sets the specified value to the property resolved from the specified expression.
|
org.zkoss.xel.ValueReference |
getValueReference(BindContext ctx,
org.zkoss.zk.ui.Component comp,
org.zkoss.xel.ExpressionX expression)
Returns the result reference of the specified expression.
|
boolean |
isReadOnly(BindContext ctx,
org.zkoss.zk.ui.Component comp,
org.zkoss.xel.ExpressionX expression)
Returns whether the specified expression a read only expression.
|
org.zkoss.xel.ExpressionX |
parseExpressionX(BindContext ctx,
String expression,
Class<?> expectedType)
Prepares the expressionX.
|
void |
setValue(BindContext ctx,
org.zkoss.zk.ui.Component comp,
org.zkoss.xel.ExpressionX expression,
Object value)
Sets the specified value to the property resolved from the specified expression.
|
org.zkoss.xel.ExpressionX parseExpressionX(BindContext ctx, String expression, Class<?> expectedType) throws org.zkoss.xel.XelException
expression
- the expression to be prepared for being evaluated
later.expectedType
- the expected type of the result of the evaluationorg.zkoss.xel.XelException
void setValue(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression, Object value) throws org.zkoss.xel.XelException
ctx
- the scoped bind context of this operationcomp
- the scoped component context of this operationexpression
- the expression that will resolve a propertyvalue
- the value to be set into the resolved propertyorg.zkoss.xel.XelException
Object getValue(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException
ctx
- the scoped bind context of this operationcomp
- the scoped component context of this operationexpression
- the expression that will resolve a propertyorg.zkoss.xel.XelException
Class<?> getType(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyorg.zkoss.xel.XelException
org.zkoss.xel.ValueReference getValueReference(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyorg.zkoss.xel.XelException
boolean isReadOnly(BindContext ctx, org.zkoss.zk.ui.Component comp, org.zkoss.xel.ExpressionX expression) throws org.zkoss.xel.XelException
ctx
- BindContextcomp
- evaluation contextexpression
- the expression that will resolve a propertyorg.zkoss.xel.XelException
Copyright © 2016. All rights reserved.