Java Doc for ListitemRendererExt.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.ListitemRendererExt

All known Subclasses:   org.zkoss.zkplus.databind.BindingListitemRenderer,
ListitemRendererExt
public interface ListitemRendererExt (Code)
Provides additional control to ListitemRenderer .
author:
   tomyeh
See Also:   ListitemRenderer


Field Summary
final public static  intDETACH_ON_RENDER
     Returned by ListitemRendererExt.getControls to indicate to detach the list cell adde by ListitemRendererExt.newListcell .
final public static  intDETACH_ON_UNLOAD
     Returned by ListitemRendererExt.getControls to indicate whether to detach a rendered item when unloading it.

When an item has to be cleaned up (so it can be re-rendered again), the list box checks whether this flag is returned. For example, when a new data model is assigned, all rendered items (i.e., generated by ListitemRenderer.render ) will be cleaned up.

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

Sometimes it could be an issue.



Method Summary
public  intgetControls()
     Returns how a listbox shall render the live data.
public  ListcellnewListcell(Listitem item)
     Create an instance of Listcell as the first cell of the list item.

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

Note: DO NOT call Listitem.setParent . Don't create cells for other columns.

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


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

Note: DO NOT call Listcell.setParent .
Parameters:
  item - the list item.

public  ListitemnewListitem(Listbox listbox)
     Creates an instance of Listitem for rendering.

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

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

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




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

When an item has to be cleaned up (so it can be re-rendered again), the list box checks whether this flag is returned. For example, when a new data model is assigned, all rendered items (i.e., generated by ListitemRenderer.render ) will be cleaned up.

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

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






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

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




newListcell
public Listcell newListcell(Listitem item)(Code)
Create an instance of Listcell as the first cell of the list item.

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

Note: DO NOT call Listitem.setParent . Don't create cells for other columns.

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


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

Note: DO NOT call Listcell.setParent .
Parameters:
  item - the list item. It is the same as that is returnedby ListitemRendererExt.newListitem the list cell if you'd like to create it differently, or nullif you want Listbox to create it for you




newListitem
public Listitem newListitem(Listbox listbox)(Code)
Creates an instance of Listitem for rendering. The created component will be passed to ListitemRenderer.render .

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

If null is returned, the default list item is created as follow.


 final Listitem item = new Listitem();
 item.applyProperties();
 return item;
 

Note: DO NOT call Listitem.setParent . the list item if you'd like to create it differently, or nullif you want Listbox 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.