|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zkplus.databind.Binding
public class Binding
A Data Binding that associate component+attr to an bean expression.
Method Summary | |
---|---|
java.util.Set |
getAfterWhenEvents()
Get save-after event expression. |
java.util.Map<java.lang.Object,java.lang.Object> |
getArgs()
Get generic arguments. |
java.lang.String |
getAttr()
Get component attribute name. |
java.lang.Object |
getBean(Component comp)
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()
Gets the associated Data Binder of this Binding. |
Component |
getComponent()
Gets the associated Component of this Binding. |
TypeConverter |
getConverter()
Get the TypeConverter . |
java.lang.String |
getExpression()
Get bean expression, e.g. a.b.c. |
java.util.LinkedHashSet<java.lang.String> |
getLoadAfterEvents()
Get load-after event expression set. |
java.util.LinkedHashSet<java.lang.String> |
getLoadWhenEvents()
Get load-when event expression set. |
java.util.Set<java.lang.String> |
getSaveWhenEvents()
Get save-when event expression. |
boolean |
isLoadable()
Whether the binding is loadable. |
boolean |
isSavable()
Whether the binding is savable. |
void |
loadAttribute(Component comp)
load bean value into the attribute of the specified component. |
void |
loadAttribute(Component comp,
java.lang.Object bean)
load bean value into the attribute of the specified component. |
void |
saveAttribute(Component comp)
save into bean value from the attribute of the specified component. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public DataBinder getBinder()
public Component getComponent()
public java.lang.String getAttr()
public java.util.Map<java.lang.Object,java.lang.Object> getArgs()
public java.lang.String getExpression()
public java.util.Set<java.lang.String> getSaveWhenEvents()
public java.util.Set getAfterWhenEvents()
public java.util.LinkedHashSet<java.lang.String> getLoadWhenEvents()
public java.util.LinkedHashSet<java.lang.String> getLoadAfterEvents()
public boolean isLoadable()
public boolean isSavable()
public TypeConverter getConverter()
TypeConverter
.
public void loadAttribute(Component comp)
comp
- the component.public java.lang.Object getBean(Component comp)
Note if the expression is associated to a single variable; e.g. "a" only, this method returns null.
comp
-
public void loadAttribute(Component comp, java.lang.Object bean)
comp
- the component.bean
- the bean value.public void saveAttribute(Component comp)
comp
- the component.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |