Package org.zkoss.bind.impl
Class ReferenceBindingImpl
java.lang.Object
org.zkoss.bind.impl.BindingImpl
org.zkoss.bind.impl.ReferenceBindingImpl
- All Implemented Interfaces:
Serializable,Binding,LoadBinding,ReferenceBinding
Implementation of
ReferenceBinding.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, String attr, String expression) -
Method Summary
Modifier and TypeMethodDescriptionReturns the reference expression script of this binding.getValue(BindELContext ctx) Returns the referenced value.voidInvalidate cached value of this reference.voidload(BindContext ctx) Load data into the source attribute from the target property.voidsetValue(BindELContext ctx, Object val) Sets the value to referenced objecttoString()Methods inherited from class org.zkoss.bind.impl.BindingImpl
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zkoss.bind.sys.Binding
getArgs, getBinder, getComponent
-
Constructor Details
-
ReferenceBindingImpl
-
-
Method Details
-
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.
-
setValue
Description copied from interface:ReferenceBindingSets the value to referenced object- Specified by:
setValuein interfaceReferenceBinding- Parameters:
ctx- the context to evaluate the reference expression.
-
load
Description copied from interface:LoadBindingLoad data into the source attribute from the target property.- Specified by:
loadin interfaceLoadBinding- Parameters:
ctx- the binding runtime context
-
getPropertyString
Description copied from interface:ReferenceBindingReturns the reference expression script of this binding.- Specified by:
getPropertyStringin interfaceReferenceBinding- Returns:
- the reference expression script of this binding.
-
invalidateCache
public void invalidateCache()Description copied from interface:ReferenceBindingInvalidate cached value of this reference.- Specified by:
invalidateCachein interfaceReferenceBinding
-
toString
-