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


org.zkoss.zk.ui.sys.ComponentCtrl

All known Subclasses:   org.zkoss.zk.ui.AbstractComponent,
ComponentCtrl
public interface ComponentCtrl (Code)
An addition interface to org.zkoss.zk.ui.Component that is used for implementation or tools.

Application developers rarely need to access methods in this interface.
author:
   tomyeh





Method Summary
public  voidaddAnnotation(String annotName, Map annotAttrs)
     Associates an annotation to this component.
public  voidaddAnnotation(String propName, String annotName, Map annotAttrs)
     Adds an annotation to the specified proeprty of this component.
public  voidaddEventHandler(String name, EventHandler evthd)
     Adds an event handler.
public  voidaddSharedAnnotationMap(AnnotationMap annots)
     Add a map of annotations which is shared by other components. In other words, this component shall have all annotations defined in the specified map, annots.
public  voidaddSharedEventHandlerMap(EventHandlerMap evthds)
     Adds a map of event handlers which is shared by other components. In other words, this component shall have all event handlers defined in the specified map, evthds.
public  ListgetAnnotatedProperties()
     Returns a read-only list of the name (String) of properties that are associated at least one annotation (never null).
public  ListgetAnnotatedPropertiesBy(String annotName)
     Returns a read-only list of the names (String) of the properties that are associated with the specified annotation (never null).
public  AnnotationgetAnnotation(String annotName)
     Returns the annotation associated with the component, or null if not available.
public  AnnotationgetAnnotation(String propName, String annotName)
     Returns the annotation associated with the definition of the specified property, or null if not available.
public  CollectiongetAnnotations()
     Returns a read-only collection of all annotations associated with this component (never null).
public  CollectiongetAnnotations(String propName)
     Returns a read-only collection of all annotations associated with the specified property (never null).
public  ZScriptgetEventHandler(String evtnm)
     Returns the event handler of the specified name, or null if not found.
public  SetgetEventHandlerNames()
     Returns a readonly collection of event names (String), or an empty collection if no event name is registered.
public  ObjectgetExtraCtrl()
     Returns the extra controls that tell ZK how to handle this component specially.

Application developers need NOT to access this method.

There are two set of extra controls: org.zkoss.zk.ui.ext.client and org.zkoss.zk.ui.ext.render.

The first package is used if the content of a component can be changed by the user at the client.

public  WrongValueExceptiononWrongValue(WrongValueException ex)
     Notifies that an WrongValueException instance is thrown, and WrongValueException.getComponent is the component causing the exception.
public  voidsessionDidActivate(Page page)
     Notification that the session, which owns this component, has just been activated (aka., deserialized).
public  voidsessionWillPassivate(Page page)
     Notification that the session, which owns this component, is about to be passivated (aka., serialized).
public  voidsetComponentDefinition(ComponentDefinition compdef)
     Sets the component definition.

The component definition affects how a component behaves. Developers rarely need to call this method.




Method Detail
addAnnotation
public void addAnnotation(String annotName, Map annotAttrs)(Code)
Associates an annotation to this component.

Unlike Java, you can add annotations dynamically, and each component has its own annotations.
Parameters:
  annotName - the annotation name (never null, nor empty).
Parameters:
  annotAttrs - a map of attributes, or null if no attribute.The attribute must be in a pair of strings (String name, String value).




addAnnotation
public void addAnnotation(String propName, String annotName, Map annotAttrs)(Code)
Adds an annotation to the specified proeprty of this component.
Parameters:
  propName - the property name (never nul, nor empty).
Parameters:
  annotName - the annotation name (never null, nor empty).
Parameters:
  annotAttrs - a map of attributes, or null if no attribute at all.The attribute must be in a pair of strings (String name, String value).



addEventHandler
public void addEventHandler(String name, EventHandler evthd)(Code)
Adds an event handler.



addSharedAnnotationMap
public void addSharedAnnotationMap(AnnotationMap annots)(Code)
Add a map of annotations which is shared by other components. In other words, this component shall have all annotations defined in the specified map, annots. Meanwhile, this component shall not modify annots, since it is shared. The caller shall not change annots after the invocation, too
Parameters:
  annots - a annotation map.



addSharedEventHandlerMap
public void addSharedEventHandlerMap(EventHandlerMap evthds)(Code)
Adds a map of event handlers which is shared by other components. In other words, this component shall have all event handlers defined in the specified map, evthds. Meanwhile, this component shall not modify evthds, since it is shared. The caller shall not change annots after the invocation, too
Parameters:
  evthds - a map of event handler



getAnnotatedProperties
public List getAnnotatedProperties()(Code)
Returns a read-only list of the name (String) of properties that are associated at least one annotation (never null).



getAnnotatedPropertiesBy
public List getAnnotatedPropertiesBy(String annotName)(Code)
Returns a read-only list of the names (String) of the properties that are associated with the specified annotation (never null).



getAnnotation
public Annotation getAnnotation(String annotName)(Code)
Returns the annotation associated with the component, or null if not available.
Parameters:
  annotName - the annotation name



getAnnotation
public Annotation getAnnotation(String propName, String annotName)(Code)
Returns the annotation associated with the definition of the specified property, or null if not available.
Parameters:
  annotName - the annotation name
Parameters:
  propName - the property name, e.g., "value".
exception:
  IllegalArgumentException - if propName is null or empty



getAnnotations
public Collection getAnnotations()(Code)
Returns a read-only collection of all annotations associated with this component (never null).



getAnnotations
public Collection getAnnotations(String propName)(Code)
Returns a read-only collection of all annotations associated with the specified property (never null).
Parameters:
  propName - the property name, e.g., "value".
exception:
  IllegalArgumentException - if propName is null or empty



getEventHandler
public ZScript getEventHandler(String evtnm)(Code)
Returns the event handler of the specified name, or null if not found.



getEventHandlerNames
public Set getEventHandlerNames()(Code)
Returns a readonly collection of event names (String), or an empty collection if no event name is registered.
since:
   3.0.2



getExtraCtrl
public Object getExtraCtrl()(Code)
Returns the extra controls that tell ZK how to handle this component specially.

Application developers need NOT to access this method.

There are two set of extra controls: org.zkoss.zk.ui.ext.client and org.zkoss.zk.ui.ext.render.

The first package is used if the content of a component can be changed by the user at the client. It is so-called the client controls.

The second package is used to control how to render a component specially.

Override this method only if you want to return the extra controls. null if no special handling required. If the componentrequires some special controls, it could return an object thatimplements one or several interfaces in the org.zkoss.zk.ui.ext.renderand org.zkoss.zk.ui.ext.client packages.For example, org.zkoss.zk.ui.ext.render.Cropperand org.zkoss.zk.ui.ext.client.InputableX.




onWrongValue
public WrongValueException onWrongValue(WrongValueException ex)(Code)
Notifies that an WrongValueException instance is thrown, and WrongValueException.getComponent is the component causing the exception. It is a callback and the component can store the error message, show up the custom information, or even 'eat' the exception.
Parameters:
  ex - the exception being thrown (never null) the exception to throw, or null to ignore the exceptionIn most cases, just return ex
since:
   2.4.0



sessionDidActivate
public void sessionDidActivate(Page page)(Code)
Notification that the session, which owns this component, has just been activated (aka., deserialized).

Note: only root components are notified by this method.




sessionWillPassivate
public void sessionWillPassivate(Page page)(Code)
Notification that the session, which owns this component, is about to be passivated (aka., serialized).

Note: only root components are notified by this method.




setComponentDefinition
public void setComponentDefinition(ComponentDefinition compdef)(Code)
Sets the component definition.

The component definition affects how a component behaves. Developers rarely need to call this method. If a wrong definition is assigned, the result is unpredictable (and hard to debug). It is mainly designed for developing tools.
exception:
  IllegalArgumentException - if compdef is null




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