Java Doc for DataBinder.java in  » Ajax » zk » org » zkoss » zkplus » databind » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » zk » org.zkoss.zkplus.databind 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.zkoss.zkplus.databind.DataBinder

All known Subclasses:   org.zkoss.zkplus.databind.AnnotateDataBinder,
DataBinder
public class DataBinder (Code)
The DataBinder used for binding ZK UI component and the backend data bean.
author:
   Henri Chen


Field Summary
final public static  StringNULLIFY
    
final public static  StringTEMPLATE
    
final public static  StringTEMPLATEMAP
    
final public static  StringVARNAME
    
protected  Map_collectionItemMap
    


Method Summary
public  voidaddBinding(Component comp, String attr, String expr)
     Binding bean to UI component.
public  voidaddBinding(Component comp, String attr, String expr, String[] loadWhenEvents, String saveWhenEvent, String access, String converter)
     Binding bean to UI component.
public  voidaddBinding(Component comp, String attr, String expr, String[] loadWhenEvents, String[] saveWhenEvents, String access, String converter)
     Binding bean to UI component.
public  voidaddBinding(Component comp, String attr, String expr, List loadWhenEvents, String saveWhenEvent, String access, String converter)
     Binding bean to UI component.
public  voidaddBinding(Component comp, String attr, String expr, List loadWhenEvents, List saveWhenEvents, String access, String converter)
     Binding bean to UI component.
public  voidaddCollectionItem(String comp, CollectionItem decor)
     Adds a CollectionItem for this comp.
public  voidbindBean(String beanid, Object bean)
     Bind a real bean object to the specified beanid.
public  booleanexistBinding(Component comp, String attr)
     Whether this component and attribute associated with a binding.
 booleanexistsBean(String beanid)
    
public  booleanexistsBindings(Component comp)
     Whether this component associated with any bindings.
 ObjectgetBean(String beanid)
    
 ObjectgetBeanAndRegisterBeanSameNodes(Component comp, String path)
     traverse the path nodes and return the final bean.
 SetgetBeanSameNodes(Object bean)
    
public  BindinggetBinding(Component comp, String attr)
     Given component and attr, return the associated Binding .
protected  CollectionItemgetBindingCollectionItem(Component comp)
     Returns a CollectionItem by the comp accordingly.
public  CollectiongetBindings(Component comp)
     Given component, return the associated list of Binding s.
static  booleanhasTemplateOwner(Component comp)
    
protected  voidinit()
    
static  booleanisClone(Component comp)
    
public  booleanisDefaultConfig()
     Whether use the default binding configuration.
static  booleanisTemplate(Component comp)
    
public  voidloadAll()
     Load all value from data beans to UI components.
public  voidloadAttribute(Component comp, String attr)
     Load value from the data bean property to a specified attribute of the UI component.
public  voidloadComponent(Component comp)
     Load values from the data bean properties to all attributes of a specified UI component.
protected  Object[]loadPropertyAnnotation(Component comp, String propName, String bindName)
    
 ObjectlookupBean(Component comp, String beanid)
    
static  ComponentlookupClone(Component srcClone, Component srcTemplate)
    
static  ListparseExpression(String expr, String separator)
    
 SetremoveBeanSameNodes(Object bean)
    
public  voidremoveBinding(Component comp, String attr)
     Remove the binding associated with the attribute of the component.
public  voidsaveAll()
     Save all values from UI components to beans.
public  voidsaveAttribute(Component comp, String attr)
     Save value from a specified attribute of the UI component to a data bean property.
public  voidsaveComponent(Component comp)
     Save values from all attributes of a specified UI component to data bean properties.
 voidsetBean(String beanid, Object bean)
    
 voidsetBeanAndRegisterBeanSameNodes(Component comp, Object val, Binding binding, String path, boolean autoConvert, Object rawval, List loadOnSaveInfos)
    
 voidsetBeanSameNodes(Object bean, Set set)
    
public  voidsetDefaultConfig(boolean b)
     Whether use the default binding configuration.
public  voidsetupTemplateComponent(Component comp, Object owner)
    

Field Detail
NULLIFY
final public static String NULLIFY(Code)



TEMPLATE
final public static String TEMPLATE(Code)



TEMPLATEMAP
final public static String TEMPLATEMAP(Code)



VARNAME
final public static String VARNAME(Code)



_collectionItemMap
protected Map _collectionItemMap(Code)





Method Detail
addBinding
public void addBinding(Component comp, String attr, String expr)(Code)
Binding bean to UI component. This is the same as addBinding(Component comp, String attr, String expr, (List)null, (List)null, (String)null, (String)null).
Parameters:
  comp - The component to be associated.
Parameters:
  attr - The attribute of the component to be associated.
Parameters:
  expr - The expression to associate the data bean.



addBinding
public void addBinding(Component comp, String attr, String expr, String[] loadWhenEvents, String saveWhenEvent, String access, String converter)(Code)
Binding bean to UI component.
Parameters:
  comp - The component to be associated.
Parameters:
  attr - The attribute of the component to be associated.
Parameters:
  expr - The expression to associate the data bean.
Parameters:
  loadWhenEvents - The event list when to load data.
Parameters:
  saveWhenEvent - The event when to save data.
Parameters:
  access - In the view of UI component: "load" load only, "both" load/save, "save" save only when doingdata binding. null means using the default access natural of the component. e.g. Label.value is "load", but Textbox.value is "both".
Parameters:
  converter - The converter class used to convert classes between component and the associated bean. null means using the default class conversion method.



addBinding
public void addBinding(Component comp, String attr, String expr, String[] loadWhenEvents, String[] saveWhenEvents, String access, String converter)(Code)
Binding bean to UI component.
Parameters:
  comp - The component to be associated.
Parameters:
  attr - The attribute of the component to be associated.
Parameters:
  expr - The expression to associate the data bean.
Parameters:
  loadWhenEvents - The event list when to load data.
Parameters:
  saveWhenEvents - The event when to save data.
Parameters:
  access - In the view of UI component: "load" load only, "both" load/save, "save" save only when doingdata binding. null means using the default access natural of the component. e.g. Label.value is "load", but Textbox.value is "both".
Parameters:
  converter - The converter class used to convert classes between component and the associated bean. null means using the default class conversion method.
since:
   3.0.0



addBinding
public void addBinding(Component comp, String attr, String expr, List loadWhenEvents, String saveWhenEvent, String access, String converter)(Code)
Binding bean to UI component.
Parameters:
  comp - The component to be associated.
Parameters:
  attr - The attribute of the component to be associated.
Parameters:
  expr - The expression to associate the data bean.
Parameters:
  loadWhenEvents - The event list when to load data.
Parameters:
  saveWhenEvent - The event when to save data.
Parameters:
  access - In the view of UI component: "load" load only, "both" load/save, "save" save only when doingdata binding. null means using the default access natural of the component. e.g. Label.value is "load", but Textbox.value is "both".
Parameters:
  converter - The converter class used to convert classes between component and the associated bean. null means using the default class conversion method.



addBinding
public void addBinding(Component comp, String attr, String expr, List loadWhenEvents, List saveWhenEvents, String access, String converter)(Code)
Binding bean to UI component.
Parameters:
  comp - The component to be associated.
Parameters:
  attr - The attribute of the component to be associated.
Parameters:
  expr - The expression to associate the data bean.
Parameters:
  loadWhenEvents - The event list when to load data.
Parameters:
  saveWhenEvents - The event list when to save data.
Parameters:
  access - In the view of UI component: "load" load only, "both" load/save, "save" save only when doingdata binding. null means using the default access natural of the component. e.g. Label.value is "load", but Textbox.value is "both".
Parameters:
  converter - The converter class used to convert classes between component and the associated bean. null means using the default class conversion method.
since:
   3.0.0



addCollectionItem
public void addCollectionItem(String comp, CollectionItem decor)(Code)
Adds a CollectionItem for this comp.
See Also:   CollectionItem
since:
   3.0.0



bindBean
public void bindBean(String beanid, Object bean)(Code)
Bind a real bean object to the specified beanid. You might not need to call this method because this DataBinder would look up the variable via the org.zkoss.zk.ui.Component.getVariable method if it cannot find the specified bean via the given beanid.
Parameters:
  beanid - The bean id used in data binding.
Parameters:
  bean - The real bean object to be associated with the bean id.



existBinding
public boolean existBinding(Component comp, String attr)(Code)
Whether this component and attribute associated with a binding.



existsBean
boolean existsBean(String beanid)(Code)



existsBindings
public boolean existsBindings(Component comp)(Code)
Whether this component associated with any bindings.



getBean
Object getBean(String beanid)(Code)



getBeanAndRegisterBeanSameNodes
Object getBeanAndRegisterBeanSameNodes(Component comp, String path)(Code)
traverse the path nodes and return the final bean.



getBeanSameNodes
Set getBeanSameNodes(Object bean)(Code)



getBinding
public Binding getBinding(Component comp, String attr)(Code)
Given component and attr, return the associated Binding .
Parameters:
  comp - the concerned component
Parameters:
  attr - the concerned attribute



getBindingCollectionItem
protected CollectionItem getBindingCollectionItem(Component comp)(Code)
Returns a CollectionItem by the comp accordingly.
See Also:   CollectionItem
since:
   3.0.0



getBindings
public Collection getBindings(Component comp)(Code)
Given component, return the associated list of Binding s.
Parameters:
  comp - the concerned component



hasTemplateOwner
static boolean hasTemplateOwner(Component comp)(Code)



init
protected void init()(Code)



isClone
static boolean isClone(Component comp)(Code)



isDefaultConfig
public boolean isDefaultConfig()(Code)
Whether use the default binding configuration.



isTemplate
static boolean isTemplate(Component comp)(Code)



loadAll
public void loadAll()(Code)
Load all value from data beans to UI components.



loadAttribute
public void loadAttribute(Component comp, String attr)(Code)
Load value from the data bean property to a specified attribute of the UI component.
Parameters:
  comp - the UI component to be loaded value.
Parameters:
  attr - the UI component attribute to be loaded value.



loadComponent
public void loadComponent(Component comp)(Code)
Load values from the data bean properties to all attributes of a specified UI component.
Parameters:
  comp - the UI component to be loaded value.



loadPropertyAnnotation
protected Object[] loadPropertyAnnotation(Component comp, String propName, String bindName)(Code)



lookupBean
Object lookupBean(Component comp, String beanid)(Code)



lookupClone
static Component lookupClone(Component srcClone, Component srcTemplate)(Code)



parseExpression
static List parseExpression(String expr, String separator)(Code)



removeBeanSameNodes
Set removeBeanSameNodes(Object bean)(Code)



removeBinding
public void removeBinding(Component comp, String attr)(Code)
Remove the binding associated with the attribute of the component.
Parameters:
  comp - The component to be removed the data binding association.
Parameters:
  attr - The attribute of the component to be removed the data binding association.



saveAll
public void saveAll()(Code)
Save all values from UI components to beans.



saveAttribute
public void saveAttribute(Component comp, String attr)(Code)
Save value from a specified attribute of the UI component to a data bean property.
Parameters:
  comp - the UI component used to save value into backend data bean.
Parameters:
  attr - the UI component attribute used to save value into backend data bean.



saveComponent
public void saveComponent(Component comp)(Code)
Save values from all attributes of a specified UI component to data bean properties.
Parameters:
  comp - the UI component used to save value into backend data bean.



setBean
void setBean(String beanid, Object bean)(Code)



setBeanAndRegisterBeanSameNodes
void setBeanAndRegisterBeanSameNodes(Component comp, Object val, Binding binding, String path, boolean autoConvert, Object rawval, List loadOnSaveInfos)(Code)



setBeanSameNodes
void setBeanSameNodes(Object bean, Set set)(Code)



setDefaultConfig
public void setDefaultConfig(boolean b)(Code)
Whether use the default binding configuration.



setupTemplateComponent
public void setupTemplateComponent(Component comp, Object owner)(Code)
Sets up the specified comp and its decendents to be as template (or not)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.