org.zkoss.zk.ui.util

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.zk.ui.util 
org.zkoss.zk.ui.util
Utitilies to Handle User Interfaces

Utilities to handle user interfaces.

Java Source File NameTypeComment
CharsetFinder.javaInterface Represents a class that decides the character set based on the content type and the real content.
Clients.javaClass Utilities to send AuResponse to the client.

Utilities here are mainly to control how the client (aka., the browser window) behaves.

ComponentCloneListener.javaInterface Used to notify an object stored in a component, when the component is cloned.

When a component is cloned, it checks every attribute ( Component.setAttribute ) and listener ( Component.addEventListener ) to see whether this interface is implemented. If implemented, ComponentCloneListener.clone will be called.

ComponentSerializationListener.javaInterface Used to notify an object stored in a component, when the component is going to be serialized or has been deserialized.
Composer.javaInterface Represents a composer to initialize a component (or a component of tree) when ZK loader is composing a component.
ComposerExt.javaInterface An addition interface implemented with Composer to provide more control.
Condition.javaInterface A condition to test with.
ConditionImpl.javaClass An utility to simplify the implementation of Condition .
Configuration.javaClass The ZK configuration.
DeferredValue.javaInterface Used with org.zkoss.zk.ui.Component.smartUpdateDeferred(StringDeferredValue) to represent a value that shall be evaluated only in the rendering phase (rather than in the event processing phase).
DesktopCleanup.javaInterface Used to clean up a desktop.
DesktopInit.javaInterface Used to initialize a desktop when it is created.
DesktopSerializationListener.javaInterface Used to notify an object stored in a desktop, when the desktop is going to be serialized or has been deserialized.
EventInterceptor.javaInterface The event interceptor used to intercept the processing of events.
ExecutionCleanup.javaInterface Used to clean up an execution.
ExecutionInit.javaInterface Used to initialize an execution when it is created.
ForEach.javaInterface Used to denote a collection of elements.
ForEachImpl.javaClass An implementation of ForEach .

Note: the use of ForEachImpl is different from ConditionImpl .

ForEachStatus.javaInterface Represents the runtime information of each iteration caused by ForEach .
GenericComposer.javaClass

An abstract composer that you can extend and write intuitive onXxx event handler methods; this class will registers onXxx events to the supervised component automatically.

The following is an example.

Initiator.javaInterface Implemented by an initiator that will be invoked if it is specified in the init directive.

<?init class="MyInit"?>

Once specified, an instance is created and Initiator.doInit is called before the page is evaluated.

InitiatorExt.javaInterface An extra interface that can be implemented with Initiator to have the better control.
Monitor.javaInterface A listener to monitor the status of ZK engine.
PageSerializationListener.javaInterface Used to notify an object stored in a page, when the page is going to be serialized or has been deserialized.
PerformanceMeter.javaInterface A listener to measure the performance of certain activities.

Note: ZK doesn't fork another low-priority thread to call the methods defined in this listener.

RequestInterceptor.javaInterface Used to intercept the requests for the ZK Loader and Update Engine. Developers usually use it to prepare the locale and time zone.

RequestInterceptor.request is called at very early stage, even before setting the locale for the request. Thus, you can configure the locale as follows:
sess.setAttribute( org.zkoss.web.Attributes.PREFERRED_LOCALE , myLocale);

By default, the locale is decided by the browser's preference. However, you may want to store the previous locale in the cookie if your application is HTTP.

SessionCleanup.javaInterface Used to clean up a session.
SessionInit.javaInterface Used to initialize a session when it is created.
SessionSerializationListener.javaInterface Used to notify an object stored in a session, when the session is going to be serialized or has been deserialized.
Statistic.javaClass An implementation of Monitor to accumulate statistic data in memory.
ThemeProvider.javaInterface Used to replace the theme defined in the language definitions (lang.xml and lang-addon.xml) and the configuration (the theme-uri elements in web.xml).
URIInterceptor.javaInterface Used to intercept the loading of ZUML pages associated with the specfied URI. Developers usually use it to do the security check.

How this interface is used.

  1. First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener. Then, an instance of the specified class is created.
  2. Each time ZK wants to load a page definition based on an URI, URIInterceptor.request is called against the instance created in the previous step.

Note:

  • Unlike ExecutionInit and others listeners, the same instance of URIInterceptor is used for the whole application. Thus, you have to make sure it can be accessed concurrently.
  • URIInterceptor.request is called even if the page definition is cached.

Differences to RequestInterceptor

URIInterceptor is called when retrieving a page definition from an URI ( org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition ).

WebAppCleanup.javaInterface Used to initialize a ZK application when it about to be destroyed.
WebAppInit.javaInterface Used to initialize a ZK application when it is created.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.