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 XelELContext
ELContext for Binding.
- Since:
- 6.0.0
- Author:
- henrichen
Method Summary |
static void |
addDependsOnTracking(Binding srcBinding,
java.util.List<java.lang.String> srcPath,
Component srcComp,
java.lang.String dependsOnPath,
Component dependsOnComp)
Prepare the dependsOn nodes |
static void |
addDependsOnTracking(Binding srcBinding,
java.util.List<java.lang.String> srcPath,
java.lang.String dependsOnBasepath,
java.lang.String dependsOnProp)
Prepare the dependsOn nodes |
static void |
addDependsOnTrackings(java.lang.reflect.Method m,
java.lang.String basepath,
java.util.List<java.lang.String> srcpath,
Binding binding,
BindContext ctx)
|
static void |
addModel(Component comp,
java.lang.Object model)
|
static void |
addNotifys(java.lang.reflect.Method m,
java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
|
static void |
addNotifys(java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
|
static void |
addNotifys(java.util.Set<Property> props,
BindContext ctx)
|
static java.lang.String |
appendFields(java.lang.String prefix,
java.lang.String field)
|
java.lang.Object |
getAttribute(java.lang.String name)
|
BindContext |
getBindContext()
|
Binding |
getBinding()
|
static java.lang.String |
getModelName(Component comp)
|
static java.util.Set<Property> |
getNotifys(BindContext ctx)
|
static java.util.Set<Property> |
getNotifys(java.lang.reflect.Method m,
java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
|
boolean |
ignoreTracker()
|
static boolean |
isBracket(java.lang.String script)
|
static boolean |
isImmutable(java.lang.Object value)
Returns whether the specified Object is an immutable object |
protected ELResolver |
newELResolver(XelContext xelc)
|
static java.lang.String |
pathToString(java.util.List<java.lang.String> path)
|
static Property |
prepareProperty(java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
|
static java.lang.Object |
removeModel(Component comp)
|
java.lang.Object |
setAttribute(java.lang.String name,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindELContext
public BindELContext(XelContext xelc)
newELResolver
protected ELResolver newELResolver(XelContext xelc)
- Overrides:
newELResolver
in class XelELContext
getBinding
public Binding getBinding()
getBindContext
public BindContext getBindContext()
ignoreTracker
public boolean ignoreTracker()
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
setAttribute
public java.lang.Object setAttribute(java.lang.String name,
java.lang.Object value)
prepareProperty
public static Property prepareProperty(java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
getNotifys
public static java.util.Set<Property> getNotifys(java.lang.reflect.Method m,
java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
addNotifys
public static void addNotifys(java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
addNotifys
public static void addNotifys(java.lang.reflect.Method m,
java.lang.Object base,
java.lang.String prop,
java.lang.Object value,
BindContext ctx)
addNotifys
public static void addNotifys(java.util.Set<Property> props,
BindContext ctx)
getNotifys
public static java.util.Set<Property> getNotifys(BindContext ctx)
isBracket
public static boolean isBracket(java.lang.String script)
appendFields
public static java.lang.String appendFields(java.lang.String prefix,
java.lang.String field)
addDependsOnTrackings
public static void addDependsOnTrackings(java.lang.reflect.Method m,
java.lang.String basepath,
java.util.List<java.lang.String> srcpath,
Binding binding,
BindContext ctx)
pathToString
public static java.lang.String pathToString(java.util.List<java.lang.String> path)
addDependsOnTracking
public static void addDependsOnTracking(Binding srcBinding,
java.util.List<java.lang.String> srcPath,
java.lang.String dependsOnBasepath,
java.lang.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,
java.util.List<java.lang.String> srcPath,
Component srcComp,
java.lang.String dependsOnPath,
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.
isImmutable
public static boolean isImmutable(java.lang.Object value)
- Returns whether the specified Object is an immutable object
getModelName
public static java.lang.String getModelName(Component comp)
addModel
public static void addModel(Component comp,
java.lang.Object model)
removeModel
public static java.lang.Object removeModel(Component comp)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.