Package org.zkoss.bind.impl
Class IndirectBinding
java.lang.Object
org.zkoss.bind.impl.IndirectBinding
- All Implemented Interfaces:
Serializable,Binding,LoadBinding,ReferenceBinding
An indirect binding, a kind of reference binding, but it won't create a sub-tracking
tree to get two way bindings, and it is used for children binding internally.
i.e. this class is designed for some specific cases.
- Since:
- 8.0.0
- Author:
- jumperchen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()Null is returned by default.getData()Returns the dataprotected abstract org.zkoss.zul.ListModelgetModel()Null is returned by default.getValue(BindELContext ctx) Returns the referenced value.voiddo nothing for this methodvoidload(BindContext ctx) do nothing for this methodvoidSets the datavoidsetValue(BindELContext ctx, Object value) Sets the value to referenced objectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.bind.sys.Binding
getBinder, getComponent
-
Constructor Details
-
IndirectBinding
-
-
Method Details
-
getData
Returns the data -
getModel
protected abstract org.zkoss.zul.ListModel getModel() -
setData
Sets the data -
load
do nothing for this method- Specified by:
loadin interfaceLoadBinding- Parameters:
ctx- the binding runtime context
-
setValue
Description copied from interface:ReferenceBindingSets the value to referenced object- Specified by:
setValuein interfaceReferenceBinding- Parameters:
ctx- the context to evaluate the reference expression.
-
getValue
Description copied from interface:ReferenceBindingReturns the referenced value.- Specified by:
getValuein interfaceReferenceBinding- Parameters:
ctx- the context to evaluate the reference expression.- Returns:
- the referenced value.
-
getArgs
Null is returned by default. (never be used) -
getPropertyString
Null is returned by default. (never be used)- Specified by:
getPropertyStringin interfaceReferenceBinding- Returns:
- the reference expression script of this binding.
-
invalidateCache
public void invalidateCache()do nothing for this method- Specified by:
invalidateCachein interfaceReferenceBinding
-