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


java.lang.Object
   org.zkoss.zk.ui.sys.ComponentsCtrl

ComponentsCtrl
public class ComponentsCtrl (Code)
Utilities for implementing components.
author:
   tomyeh


Field Summary
final public static  StringANONYMOUS_ID
     The anonymous UUID.
final public static  ComponentDefinitionDUMMY
     Represents a dummy definition.


Method Summary
final public static  voidapplyForward(Component comp, String forward)
     Applies the forward condition to the specified component.
final public static  StringgetAnonymousId()
    
final public static  ObjectgetCurrentInfo()
     Returns the current component info ComponentInfo , definition ( ComponentDefinition or null, which is used only by org.zkoss.zk.ui.sys.UiEngine to communicate with org.zkoss.zk.ui.AbstractComponent .
final public static  MethodgetEventMethod(Class cls, String evtnm)
     Returns the method for handling the specified event, or null if not available.
final public static  booleanisAutoId(String id)
     Returns whether an ID is generated automatically.
final public static  booleanisReservedAttribute(String name)
     Returns if the attribute name is reserved.
final public static  booleanisUuid(String id)
     Returns whether an ID is a valid UUID.
public static  StringparseClientScript(Component comp, String script)
     Parses a script by resolving #{xx} to make it executable at the client.
public static  Object[]parseEventExpression(Component comp, String evtexpr, Component defaultComp, boolean deferred)
     Pares the event expression.

There are several formats for the event expression:

  • onClick
  • self.onClick
  • id.onClick
  • ../id1/id2.onClick
  • ${elexpr}.onClick

Parameters:
  comp - the component that the event expression is referenced to
Parameters:
  evtexpr - the event expression.
Parameters:
  defaultComp - the default component which is used whenevtexpr doesn't specify the component.
Parameters:
  deferred - whether to defer the conversion of the pathto a component.
final public static  voidsetCurrentInfo(ComponentDefinition compdef)
     Sets the current component definition, which is used only by org.zkoss.zk.ui.sys.UiEngine to communicate with org.zkoss.zk.ui.AbstractComponent .
public static  voidsetCurrentInfo(ComponentInfo compInfo)
     Sets the current component definition, which is used only by org.zkoss.zk.ui.sys.UiEngine to communicate with org.zkoss.zk.ui.AbstractComponent .
final public static  voidsetEventMethodCache(Cache cache)
     Sets the cache that stores the information about event handler methods.

Since the performance of the cache is critical to the performance of the overall system.

final public static  StringtoAutoId(String prefix, int id)
     Returns the automatically generate component's UUID/ID.

Field Detail
ANONYMOUS_ID
final public static String ANONYMOUS_ID(Code)
The anonymous UUID. Used only internally.



DUMMY
final public static ComponentDefinition DUMMY(Code)
Represents a dummy definition.





Method Detail
applyForward
final public static void applyForward(Component comp, String forward)(Code)
Applies the forward condition to the specified component.

The basic format:
onEvent1=id1/id2.onEvent2,onEvent3=id3.onEvent4

See org.zkoss.zk.ui.metainfo.ComponentInfo.setForward for more information.
since:
   3.0.0




getAnonymousId
final public static String getAnonymousId()(Code)
ComponentsCtrl.ANONYMOUS_ID



getCurrentInfo
final public static Object getCurrentInfo()(Code)
Returns the current component info ComponentInfo , definition ( ComponentDefinition or null, which is used only by org.zkoss.zk.ui.sys.UiEngine to communicate with org.zkoss.zk.ui.AbstractComponent .
since:
   3.0.0



getEventMethod
final public static Method getEventMethod(Class cls, String evtnm)(Code)
Returns the method for handling the specified event, or null if not available.



isAutoId
final public static boolean isAutoId(String id)(Code)
Returns whether an ID is generated automatically.



isReservedAttribute
final public static boolean isReservedAttribute(String name)(Code)
Returns if the attribute name is reserved. If name is null, false is returned.
since:
   3.0.0



isUuid
final public static boolean isUuid(String id)(Code)
Returns whether an ID is a valid UUID.



parseClientScript
public static String parseClientScript(Component comp, String script)(Code)
Parses a script by resolving #{xx} to make it executable at the client.
Parameters:
  comp - the component used to resolve the EL expression.
Parameters:
  script - the Java script to convert
since:
   2.4.0



parseEventExpression
public static Object[] parseEventExpression(Component comp, String evtexpr, Component defaultComp, boolean deferred) throws ComponentNotFoundException(Code)
Pares the event expression.

There are several formats for the event expression:

  • onClick
  • self.onClick
  • id.onClick
  • ../id1/id2.onClick
  • ${elexpr}.onClick

Parameters:
  comp - the component that the event expression is referenced to
Parameters:
  evtexpr - the event expression.
Parameters:
  defaultComp - the default component which is used whenevtexpr doesn't specify the component.
Parameters:
  deferred - whether to defer the conversion of the pathto a component. If true and EL not specified or evaluated to a string,it returns the path directly rather than converting it to a component. a two element array. The first element is the componentif deferred is false or EL is evaluated to a component,or a path, otherwise.The second component is the event name.
since:
   3.0.0



setCurrentInfo
final public static void setCurrentInfo(ComponentDefinition compdef)(Code)
Sets the current component definition, which is used only by org.zkoss.zk.ui.sys.UiEngine to communicate with org.zkoss.zk.ui.AbstractComponent .

Used only internally.
since:
   3.0.0




setCurrentInfo
public static void setCurrentInfo(ComponentInfo compInfo)(Code)
Sets the current component definition, which is used only by org.zkoss.zk.ui.sys.UiEngine to communicate with org.zkoss.zk.ui.AbstractComponent .

Used only internally.
since:
   3.0.0




setEventMethodCache
final public static void setEventMethodCache(Cache cache)(Code)
Sets the cache that stores the information about event handler methods.

Since the performance of the cache is critical to the performance of the overall system. There is several options to choose from:

  1. ThreadLocalCache : the default. It is the fastest but consumes more memory since it maintains a cache per thread (about 10MB - 16M for over 400 concurrent users).
  2. org.zkoss.util.MultiCache . It is the slowest but consumes less memory.

Parameters:
  cache - the cache. It cannot be null. It must be thread safe.Once assigned, the caller shall not access it again.
since:
   3.0.0



toAutoId
final public static String toAutoId(String prefix, int id)(Code)
Returns the automatically generate component's UUID/ID.



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.