Java Doc for RowRendererExt.java in  » Ajax » zk » org » zkoss » zul » 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.zul 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.zkoss.zul.RowRendererExt

All known Subclasses:   org.zkoss.zkplus.databind.BindingRowRenderer,
RowRendererExt
public interface RowRendererExt (Code)
Provides additional control to RowRenderer .
author:
   tomyeh


Field Summary
final public static  intDETACH_ON_RENDER
     Returned by RowRendererExt.getControls to indicate to detach the cell adde by RowRendererExt.newCell .
final public static  intDETACH_ON_UNLOAD
     Returned by RowRendererExt.getControls to indicate whether to detach a rendered row when unloading it.

When a row has to be cleaned up (so it can be re-rendered again), the grid checks whether this flag is returned. For example, when a new data model is assigned, all rendered rows (i.e., generated by RowRenderer.render ) will be cleaned up.

To have the best performance, the grid, by default, keep using the same row and the first cell (other cells, if any, are removed).

Sometimes it could be an issue.



Method Summary
public  intgetControls()
     Returns how a grid shall render the live data.
public  ComponentnewCell(Row row)
     Create a component as the first cell of the row.

Note: remember to invoke Component.applyProperties to initialize the properties, defined in the component definition, properly, if you create an instance instead of returning null.

Note: DO NOT call Row.setParent .

If null is returned, the default cell is created as follow.


 final Label cell = new Label();
 cell.applyProperties();
 return cell;
 

Note: DO NOT call Component.setParent . Don't create cells for other columns.
Parameters:
  row - the row.

public  RownewRow(Grid grid)
     Creates an instance of Row for rendering.

Field Detail
DETACH_ON_RENDER
final public static int DETACH_ON_RENDER(Code)
Returned by RowRendererExt.getControls to indicate to detach the cell adde by RowRendererExt.newCell .

To simplify the implementation of RowRenderer.render , Listbox , by default, detached the cell before calling RowRenderer.render -- as if this flag is returned.

If you don't specify this flag, the implementation of RowRenderer.render must be aware of the existence of the first cell (of the passed row).




DETACH_ON_UNLOAD
final public static int DETACH_ON_UNLOAD(Code)
Returned by RowRendererExt.getControls to indicate whether to detach a rendered row when unloading it.

When a row has to be cleaned up (so it can be re-rendered again), the grid checks whether this flag is returned. For example, when a new data model is assigned, all rendered rows (i.e., generated by RowRenderer.render ) will be cleaned up.

To have the best performance, the grid, by default, keep using the same row and the first cell (other cells, if any, are removed).

Sometimes it could be an issue. For example, you assign attributes or annotations to a rendered row. Then, you'd better to return this flag to indicate that. a new row shall be created (by calling RowRendererExt.newRow and RowRendererExt.newCell ) to replace the renderred row.






Method Detail
getControls
public int getControls()(Code)
Returns how a grid shall render the live data.

Note: if this interface is not implemented, RowRendererExt.DETACH_ON_RENDER is assumed. a combination of RowRendererExt.DETACH_ON_RENDER andRowRendererExt.DETACH_ON_UNLOAD to indicate how to render the live data.




newCell
public Component newCell(Row row)(Code)
Create a component as the first cell of the row.

Note: remember to invoke Component.applyProperties to initialize the properties, defined in the component definition, properly, if you create an instance instead of returning null.

Note: DO NOT call Row.setParent .

If null is returned, the default cell is created as follow.


 final Label cell = new Label();
 cell.applyProperties();
 return cell;
 

Note: DO NOT call Component.setParent . Don't create cells for other columns.
Parameters:
  row - the row. It is the same as that is returnedby RowRendererExt.newRow the cell if you'd like to create it differently, or nullif you want Grid to create it for you




newRow
public Row newRow(Grid grid)(Code)
Creates an instance of Row for rendering. The created component will be passed to RowRenderer.render .

Note: remember to invoke Row.applyProperties to initialize the properties, defined in the component definition, properly.

If null is returned, the default row is created as follow.


 final Row row = new Row();
 row.applyProperties();
 return row;
 

Note: DO NOT call Row.setParent . the row if you'd like to create it differently, or nullif you want Grid to create it for you




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