Package org.zkoss.bind.impl
Class IndirectBinding
- java.lang.Object
-
- org.zkoss.bind.impl.IndirectBinding
-
- All Implemented Interfaces:
java.io.Serializable,Binding,LoadBinding,ReferenceBinding
public abstract class IndirectBinding extends java.lang.Object implements ReferenceBinding, java.io.Serializable
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IndirectBinding(java.lang.Object data)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getArgs()Null is returned by default.java.lang.ObjectgetData()Returns the dataprotected abstract org.zkoss.zul.ListModelgetModel()java.lang.StringgetPropertyString()Null is returned by default.java.lang.ObjectgetValue(BindELContext ctx)Returns the referenced value.voidinvalidateCache()do nothing for this methodvoidload(BindContext ctx)do nothing for this methodvoidsetData(java.lang.Object data)Sets the datavoidsetValue(BindELContext ctx, java.lang.Object value)Sets the value to referenced object-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zkoss.bind.sys.Binding
getBinder, getComponent
-
-
-
-
Method Detail
-
getData
public java.lang.Object getData()
Returns the data
-
getModel
protected abstract org.zkoss.zul.ListModel getModel()
-
setData
public void setData(java.lang.Object data)
Sets the data
-
load
public void load(BindContext ctx)
do nothing for this method- Specified by:
loadin interfaceLoadBinding- Parameters:
ctx- the binding runtime context
-
setValue
public void setValue(BindELContext ctx, java.lang.Object value)
Description copied from interface:ReferenceBindingSets the value to referenced object- Specified by:
setValuein interfaceReferenceBinding- Parameters:
ctx- the context to evaluate the reference expression.
-
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.
-
getArgs
public java.util.Map<java.lang.String,java.lang.Object> getArgs()
Null is returned by default. (never be used)
-
getPropertyString
public java.lang.String 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
-
-