Source Code Cross Referenced 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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /* ListitemRendererExt.java
002:
003:        {{IS_NOTE
004:        	Purpose:
005:        		
006:        	Description:
007:        		
008:        	History:
009:        		Mon Feb  5 10:10:12     2007, Created by tomyeh
010:        }}IS_NOTE
011:
012:        Copyright (C) 2007 Potix Corporation. All Rights Reserved.
013:
014:        {{IS_RIGHT
015:        	This program is distributed under GPL Version 2.0 in the hope that
016:        	it will be useful, but WITHOUT ANY WARRANTY.
017:        }}IS_RIGHT
018:         */
019:        package org.zkoss.zul;
020:
021:        /**
022:         * Provides additional control to {@link ListitemRenderer}.
023:         *
024:         * @author tomyeh
025:         * @see ListitemRenderer
026:         */
027:        public interface ListitemRendererExt {
028:            /** Creates an instance of {@link Listitem} for rendering.
029:             * The created component will be passed to {@link ListitemRenderer#render}.
030:             *
031:             * <p>Note: remember to invoke {@link Listitem#applyProperties} to initialize
032:             * the properties, defined in the component definition, properly.
033:             *
034:             * <p>If null is returned, the default list item is created as follow.
035:            <pre><code>
036:            final Listitem item = new Listitem();
037:            item.applyProperties();
038:            return item;
039:            </code></pre>
040:             *
041:             * <p>Note: DO NOT call {@link Listitem#setParent}.
042:             *
043:             * @return the list item if you'd like to create it differently, or null
044:             * if you want {@link Listbox} to create it for you
045:             */
046:            public Listitem newListitem(Listbox listbox);
047:
048:            /** Create an instance of {@link Listcell} as the first cell of the list item.
049:             *
050:             * <p>Note: remember to invoke {@link Listcell#applyProperties} to initialize
051:             * the properties, defined in the component definition, properly.
052:             *
053:             * <p>Note: DO NOT call {@link Listitem#setParent}.
054:             * Don't create cells for other columns.
055:             *
056:             * <p>If null is returned, the default list cell is created as follow.
057:            <pre><code>
058:            final Listcell cell = new Listcell();
059:            cell.applyProperties();
060:            return cell;
061:            </code></pre>
062:             *
063:             * <p>Note: DO NOT call {@link Listcell#setParent}.
064:             *
065:             * @param item the list item. It is the same as that is returned
066:             * by {@link #newListitem}
067:             * @return the list cell if you'd like to create it differently, or null
068:             * if you want {@link Listbox} to create it for you
069:             */
070:            public Listcell newListcell(Listitem item);
071:
072:            /** Returned by {@link #getControls} to indicate
073:             * to detach the list cell adde by {@link #newListcell}.
074:             *
075:             * <p>To simplify the implementation of {@link ListitemRenderer#render},
076:             * {@link Listbox}, by default, detached the list cell before calling
077:             * {@link ListitemRenderer#render} -- as if this flag is returned.
078:             *
079:             * <p>If you don't specify this flag, the implementation of 
080:             * {@link ListitemRenderer#render} must be aware of the existence of
081:             * the first cell
082:             * (of the passed list item).
083:             */
084:            public static final int DETACH_ON_RENDER = 0x0001;
085:            /** Returned by {@link #getControls} to indicate
086:             * whether to detach a rendered item when unloading it.
087:             *
088:             * <p>When an item has to be cleaned up
089:             * (so it can be re-rendered again), the list box
090:             * checks whether this flag is returned.
091:             * For example, when a new data model is assigned, all rendered items
092:             * (i.e., generated by {@link ListitemRenderer#render}) will be cleaned up.
093:             *
094:             *<p>To have the best performance,
095:             * the list box, by default, keep using the same list item and
096:             * the first list cell (other list cells, if any, are removed).
097:             *
098:             * <p>Sometimes it could be an issue. For example, you assign attributes
099:             * or annotations to a rendered item.
100:             * Then, you'd better to return this flag to indicate that.
101:             * a new list item shall be created (by calling {@link #newListitem} and {@link #newListcell})
102:             * to replace the renderred item.
103:             */
104:            public static final int DETACH_ON_UNLOAD = 0x0002;
105:
106:            /** Returns how a listbox shall render the live data.
107:             *
108:             * <p>Note: if this interface is not implemented, {@link #DETACH_ON_RENDER}
109:             * is assumed.
110:             *
111:             * @return a combination of {@link #DETACH_ON_RENDER} and
112:             * {@link #DETACH_ON_UNLOAD} to indicate how to render the live data.
113:             */
114:            public int getControls();
115:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.