org.zkoss.zkplus.databind
Class Binding

java.lang.Object
  extended by org.zkoss.zkplus.databind.Binding
All Implemented Interfaces:
Serializable

Deprecated. As of release 7.0.0, replace with new ZK binding.

public class Binding
extends Object
implements Serializable

A Data Binding that associate component+attr to an bean expression.

Since:
3.0.0
Author:
Henri
See Also:
Serialized Form

Method Summary
 Set getAfterWhenEvents()
          Deprecated. Get save-after event expression.
 Map<Object,Object> getArgs()
          Deprecated. Get generic arguments.
 String getAttr()
          Deprecated. Get component attribute name.
 Object getBean(org.zkoss.zk.ui.Component comp)
          Deprecated. Returns the associated bean of this binding; e.g., for a binding to the bean "a.b.c", this will return the bean associated to "a.b" (and c is the property name).
 DataBinder getBinder()
          Deprecated. Gets the associated Data Binder of this Binding.
 org.zkoss.zk.ui.Component getComponent()
          Deprecated. Gets the associated Component of this Binding.
 TypeConverter getConverter()
          Deprecated. Get the TypeConverter.
 String getExpression()
          Deprecated. Get bean expression, e.g. a.b.c.
 LinkedHashSet<String> getLoadAfterEvents()
          Deprecated. Get load-after event expression set.
 LinkedHashSet<String> getLoadWhenEvents()
          Deprecated. Get load-when event expression set.
 Set<String> getSaveWhenEvents()
          Deprecated. Get save-when event expression.
 boolean isLoadable()
          Deprecated. Whether the binding is loadable.
 boolean isSavable()
          Deprecated. Whether the binding is savable.
 void loadAttribute(org.zkoss.zk.ui.Component comp)
          Deprecated. load bean value into the attribute of the specified component.
 void loadAttribute(org.zkoss.zk.ui.Component comp, Object bean)
          Deprecated. load bean value into the attribute of the specified component.
 void saveAttribute(org.zkoss.zk.ui.Component comp)
          Deprecated. save into bean value from the attribute of the specified component.
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getBinder

public DataBinder getBinder()
Deprecated. 
Gets the associated Data Binder of this Binding.


getComponent

public org.zkoss.zk.ui.Component getComponent()
Deprecated. 
Gets the associated Component of this Binding.


getAttr

public String getAttr()
Deprecated. 
Get component attribute name.


getArgs

public Map<Object,Object> getArgs()
Deprecated. 
Get generic arguments.


getExpression

public String getExpression()
Deprecated. 
Get bean expression, e.g. a.b.c.


getSaveWhenEvents

public Set<String> getSaveWhenEvents()
Deprecated. 
Get save-when event expression.


getAfterWhenEvents

public Set getAfterWhenEvents()
Deprecated. 
Get save-after event expression.


getLoadWhenEvents

public LinkedHashSet<String> getLoadWhenEvents()
Deprecated. 
Get load-when event expression set.


getLoadAfterEvents

public LinkedHashSet<String> getLoadAfterEvents()
Deprecated. 
Get load-after event expression set.


isLoadable

public boolean isLoadable()
Deprecated. 
Whether the binding is loadable.


isSavable

public boolean isSavable()
Deprecated. 
Whether the binding is savable.


getConverter

public TypeConverter getConverter()
Deprecated. 
Get the TypeConverter.


loadAttribute

public void loadAttribute(org.zkoss.zk.ui.Component comp)
Deprecated. 
load bean value into the attribute of the specified component.

Parameters:
comp - the component.

getBean

public Object getBean(org.zkoss.zk.ui.Component comp)
Deprecated. 
Returns the associated bean of this binding; e.g., for a binding to the bean "a.b.c", this will return the bean associated to "a.b" (and c is the property name).

Note if the expression is associated to a single variable; e.g. "a" only, this method returns null.

Parameters:
comp -
Returns:
the associated bean of this binding.
Since:
5.0.7

loadAttribute

public void loadAttribute(org.zkoss.zk.ui.Component comp,
                          Object bean)
Deprecated. 
load bean value into the attribute of the specified component.

Parameters:
comp - the component.
bean - the bean value.

saveAttribute

public void saveAttribute(org.zkoss.zk.ui.Component comp)
Deprecated. 
save into bean value from the attribute of the specified component.

Parameters:
comp - the component.

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.