Class IndirectBinding

java.lang.Object
org.zkoss.bind.impl.IndirectBinding
All Implemented Interfaces:
Serializable, Binding, LoadBinding, ReferenceBinding

public abstract class IndirectBinding extends Object implements ReferenceBinding, 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:
  • Constructor Details

    • IndirectBinding

      public IndirectBinding(Object data)
  • Method Details

    • getData

      public Object getData()
      Returns the data
    • getModel

      protected abstract org.zkoss.zul.ListModel getModel()
    • setData

      public void setData(Object data)
      Sets the data
    • load

      public void load(BindContext ctx)
      do nothing for this method
      Specified by:
      load in interface LoadBinding
      Parameters:
      ctx - the binding runtime context
    • setValue

      public void setValue(BindELContext ctx, Object value)
      Description copied from interface: ReferenceBinding
      Sets the value to referenced object
      Specified by:
      setValue in interface ReferenceBinding
      Parameters:
      ctx - the context to evaluate the reference expression.
    • getValue

      public Object getValue(BindELContext ctx)
      Description copied from interface: ReferenceBinding
      Returns the referenced value.
      Specified by:
      getValue in interface ReferenceBinding
      Parameters:
      ctx - the context to evaluate the reference expression.
      Returns:
      the referenced value.
    • getArgs

      public Map<String,Object> getArgs()
      Null is returned by default. (never be used)
      Specified by:
      getArgs in interface Binding
      Returns:
      an argument <tags, object> pairs map(read only).
    • getPropertyString

      public String getPropertyString()
      Null is returned by default. (never be used)
      Specified by:
      getPropertyString in interface ReferenceBinding
      Returns:
      the reference expression script of this binding.
    • invalidateCache

      public void invalidateCache()
      do nothing for this method
      Specified by:
      invalidateCache in interface ReferenceBinding