Package org.zkoss.bind.impl
Class ReferenceBindingImpl
- java.lang.Object
-
- org.zkoss.bind.impl.BindingImpl
-
- org.zkoss.bind.impl.ReferenceBindingImpl
-
- All Implemented Interfaces:
java.io.Serializable,Binding,LoadBinding,ReferenceBinding
public class ReferenceBindingImpl extends BindingImpl implements ReferenceBinding
Implementation ofReferenceBinding.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReferenceBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, java.lang.String attr, java.lang.String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPropertyString()Returns the reference expression script of this binding.java.lang.ObjectgetValue(BindELContext ctx)Returns the referenced value.voidinvalidateCache()Invalidate cached value of this reference.voidload(BindContext ctx)Load data into the source attribute from the target property.voidsetValue(BindELContext ctx, java.lang.Object val)Sets the value to referenced objectjava.lang.StringtoString()-
Methods inherited from class org.zkoss.bind.impl.BindingImpl
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zkoss.bind.sys.Binding
getArgs, getBinder, getComponent
-
-
-
-
Constructor Detail
-
ReferenceBindingImpl
public ReferenceBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, java.lang.String attr, java.lang.String expression)
-
-
Method Detail
-
getValue
public java.lang.Object getValue(BindELContext ctx)
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
public void setValue(BindELContext ctx, java.lang.Object val)
Description copied from interface:ReferenceBindingSets the value to referenced object- Specified by:
setValuein interfaceReferenceBinding- Parameters:
ctx- the context to evaluate the reference expression.
-
load
public void load(BindContext ctx)
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
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-