Package org.zkoss.bind.xel.zel
Class BindELContext
java.lang.Object
org.zkoss.zel.ELContext
org.zkoss.xel.zel.XelELContext
org.zkoss.bind.xel.zel.BindELContext
public class BindELContext
extends org.zkoss.xel.zel.XelELContext
ELContext for Binding.
- Since:
- 6.0.0
- Author:
- henrichen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDependsOnTracking(Binding srcBinding, List<String> srcPath, String dependsOnBasepath, String dependsOnProp) Prepare the dependsOn nodesstatic voidaddDependsOnTracking(Binding srcBinding, List<String> srcPath, org.zkoss.zk.ui.Component srcComp, String dependsOnPath, org.zkoss.zk.ui.Component dependsOnComp) Prepare the dependsOn nodesstatic voidaddDependsOnTrackings(Method m, String basepath, List<String> srcpath, Binding binding, BindContext ctx) static voidstatic voidaddNotifys(Object base, String prop, Object value, BindContext ctx) static voidaddNotifys(Method m, Object base, String prop, Object value, BindContext ctx) static voidaddNotifys(Set<Property> props, BindContext ctx) static StringappendFields(String prefix, String field) getAttribute(String name) static StringgetModelName(org.zkoss.zk.ui.Component comp) getNotifys(Method m, Object base, String prop, Object value, BindContext ctx) getNotifys(BindContext ctx) booleanstatic booleanstatic booleanisImmutable(Object value) Returns whether the specified Object is an immutable objectprotected org.zkoss.zel.ELResolvernewELResolver(org.zkoss.xel.XelContext xelc) static StringpathToString(List<String> path) static PropertyprepareProperty(Object base, String prop, Object value, BindContext ctx) voidputContext(Class key, Object contextObject) removeAttribute(String name) Removes the attribute, if any.static ObjectremoveModel(org.zkoss.zk.ui.Component comp) setAttribute(String name, Object value) static StringtoNodeString(org.zkoss.zel.impl.parser.Node next, StringBuffer path) static StringtoNodeString(org.zkoss.zel.impl.parser.Node next, StringBuilder path) Methods inherited from class org.zkoss.xel.zel.XelELContext
getELResolver, getFunctionMapper, getVariableMapper, getXelContextMethods inherited from class org.zkoss.zel.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getEvaluationListeners, getImportHandler, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, setLocale, setPropertyResolved, setPropertyResolved
-
Constructor Details
-
BindELContext
public BindELContext(org.zkoss.xel.XelContext xelc)
-
-
Method Details
-
newELResolver
protected org.zkoss.zel.ELResolver newELResolver(org.zkoss.xel.XelContext xelc) - Overrides:
newELResolverin classorg.zkoss.xel.zel.XelELContext
-
getBinding
-
getBindContext
-
ignoreTracker
public boolean ignoreTracker() -
getAttribute
-
setAttribute
-
removeAttribute
Removes the attribute, if any.- Since:
- 8.0.0
-
prepareProperty
-
getNotifys
-
getNotifys
-
addNotifys
-
addNotifys
-
addNotifys
-
toNodeString
-
toNodeString
-
isBracket
-
appendFields
-
addDependsOnTrackings
-
pathToString
-
addDependsOnTracking
public static void addDependsOnTracking(Binding srcBinding, List<String> srcPath, String dependsOnBasepath, String dependsOnProp) Prepare the dependsOn nodes- Parameters:
srcBinding- associated binding of the source dependent field; e.g.srcPath- the source dependent field name series in list. e.g. "vm", "fullname" for "vm.fullname".dependsOnBasepath- the base path for the depends-on field; e.g. the "vm" of the "vm.firstname"dependsOnProp- the property name of the depends-on field; e.g. the "firstname" of the "vm.firstname"
-
addDependsOnTracking
public static void addDependsOnTracking(Binding srcBinding, List<String> srcPath, org.zkoss.zk.ui.Component srcComp, String dependsOnPath, org.zkoss.zk.ui.Component dependsOnComp) Prepare the dependsOn nodes- Parameters:
srcBinding- the binding with the source dependent field; e.g.srcPath- the source dependent field name series in list; e.g. ["vm", "fullname"] for "vm.fullname".srcComp- the source component associated with the binding; e.g.dependsOnPath- the depends-on property name series; e.g. "vm.firstname"dependsOnComp- the depends-on component associated with the depends-on property name series binding; e.g. "vm.firstname"
-
isImmutable
Returns whether the specified Object is an immutable object -
getModelName
-
addModel
-
removeModel
-
putContext
- Overrides:
putContextin classorg.zkoss.zel.ELContext
-