org.zkoss.bind.impl
Class ReferenceBindingImpl

java.lang.Object
  extended by org.zkoss.bind.impl.BindingImpl
      extended by org.zkoss.bind.impl.ReferenceBindingImpl
All Implemented Interfaces:
java.io.Serializable, Binding, LoadBinding, ReferenceBinding

public class ReferenceBindingImpl
extends BindingImpl
implements ReferenceBinding

Implementation of ReferenceBinding.

Since:
6.0.0
Author:
henrichen
See Also:
Serialized Form

Constructor Summary
ReferenceBindingImpl(Binder binder, java.lang.String expression, Component comp)
           
 
Method Summary
 java.lang.String getPropertyString()
          Returns the reference expression script of this binding.
 java.lang.Object getValue(BindELContext ctx)
          Returns the referenced value.
 void invalidateCache()
          Invalidate cached value of this reference.
 void load(BindContext ctx)
          Load data into the source attribute from the target property.
 
Methods inherited from class org.zkoss.bind.impl.BindingImpl
containsAttribute, getArgs, getAttribute, getBinder, getComponent, getPureExpressionString, setAttribute
 
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
getArgs, getBinder, getComponent
 

Constructor Detail

ReferenceBindingImpl

public ReferenceBindingImpl(Binder binder,
                            java.lang.String expression,
                            Component comp)
Method Detail

getValue

public java.lang.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.

load

public void load(BindContext ctx)
Description copied from interface: LoadBinding
Load data into the source attribute from the target property.

Specified by:
load in interface LoadBinding
Parameters:
ctx - the binding runtime context

getPropertyString

public java.lang.String getPropertyString()
Description copied from interface: ReferenceBinding
Returns the reference expression script of this binding.

Specified by:
getPropertyString in interface ReferenceBinding
Returns:
the reference expression script of this binding.

invalidateCache

public void invalidateCache()
Description copied from interface: ReferenceBinding
Invalidate cached value of this reference.

Specified by:
invalidateCache in interface ReferenceBinding


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo