Java Doc for LeafComponent.java in  » Ajax » zk » org » zkoss » jsf » zul » impl » 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.jsf.zul.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.zkoss.jsf.zul.impl.AbstractComponent
   org.zkoss.jsf.zul.impl.LeafComponent

All known Subclasses:   org.zkoss.jsf.zul.impl.BranchComponent,
LeafComponent
abstract public class LeafComponent extends AbstractComponent (Code)
The skeletal class used to implement the ZULJSF Component for ZK components that don't accept any child.
author:
   Dennis.Chen


Field Summary
protected  Map_compAttrMap
    
protected  ComposerHandler_composer
    
 boolean_idSet
    
 BranchComponent_parentcomp
    
 RootComponent_rootcomp
    
 Component_zulcomp
    
 ResponseWriterfakeOw
    
 StringWriterfakeSw
    


Method Summary
protected  voidaddZULDynamicAttribute(String name, Object value)
     set the attribute(name) of this component to value, the difference between this method and LeafComponent.setAttributeValue is this method directly replace the attribute whether the attribute associate to a ValueBinding.
 voidafterComposeComponent()
     after children creation do dynamic attributes setter work and registers event handler.
protected  voidafterZULComponentComposed(Component zulcomp)
     This method give the delivering class a chance to handle ZUL Component just after it is composed.
This method will be invoked after ZUL component is composed and listener, attribute of ZUL component is setted.
public  voidencodeBegin(FacesContext context)
     Override method, We Construct ZUL JSF Component tree here.
public  voidencodeChildren(FacesContext context)
    
public  voidencodeEnd(FacesContext context)
    
protected  voidevaluateDynaAttributes(Component target, Map zulAttrMap)
     Test if the attributes are annotation or component attributes.
If is Component attributes then invokes setter methods to update all assigned attributes.
public  ObjectgetAttributeValue(String att)
     Get value of attribute of Component.
protected  StringgetComponentDefName()
    
protected  ComponentInfogetComponentInfo()
    
public  StringgetForward()
     Returns the forward condition that controls how to forward an event, that is received by the component created by this info, to another component.
 BranchComponentgetParentComponent()
    
public  booleangetRendersChildren()
     Override Method, don't render children my self.
 RootComponentgetRootComponent()
     Returns the RootComponent that this Component belongs to.
 UIFormgetUIForm()
     get parent UI Form of this component.
public  StringgetUse()
     Returns the class name that is used to implement the ZUL Component associated with this ZULJSF Component.
protected  ComponentgetZULComponent()
    
 voidinitComponent(org.zkoss.zk.ui.Page page)
     Create ZUL Component, and then associate it to it's Parent Component or Page Component Called by LeafComponent.loadZULTree .
protected  voidloadZULTree(org.zkoss.zk.ui.Page page, StringWriter writer)
     Call by RootComponent or BranchComponent to load zk stuff.
public  voidrestoreState(FacesContext context, Object state)
     Override Method, restore the state of this component.
public  ObjectsaveState(FacesContext context)
     Override Method, save the state of this component.
public  voidsetAttributeValue(String att, Object value)
     set value to attribute of Component, if a ValueBinding is associated with attribute , then it will set value to Binding Object
Note: set attribute after LeafComponent.loadZULTree doesn't affect the ZUL Component which is associated to this component.
public  voidsetForward(String forward)
     Sets the forward condition that controls when to forward an event receiving by this component to another component.

The basic format:
onEvent1=id1/id2.onEvent2

It means when onEvent1 is received, onEvent2 will be posted to the component with the specified path (id1/id2).

If onEvent1 is omitted, it is assumed to be onClick (and the equal sign need not to be specified. If the path is omitted, it is assumed to be the space owner Component.getSpaceOwner .

For example, "onOK" means "onClick=onOK".

You can specify several forward conditions by separating them with comma as follows:

onChanging=onChanging,onChange=onUpdate,onOK
Parameters:
  forward - the forward condition.

public  voidsetId(String id)
     Override Method, remember the id is set.
public  voidsetUse(String use)
     Sets the class name that is used to implement the ZUL Component associated with this ZULJSF Component.
 voidsetZULCustomAttribute(Map map)
    
public  voidsetZULDynamicAttribute(Map map)
     Set dynamic Attribute of this ZULJSF Component, This method is called by LeafTag only, developer should not call this method directly.
 voidwriteComponentMark(Writer writer)
     Writes a special mark to the output to denote the location of this component.

Field Detail
_compAttrMap
protected Map _compAttrMap(Code)



_composer
protected ComposerHandler _composer(Code)



_idSet
boolean _idSet(Code)



_parentcomp
BranchComponent _parentcomp(Code)



_rootcomp
RootComponent _rootcomp(Code)



_zulcomp
Component _zulcomp(Code)



fakeOw
ResponseWriter fakeOw(Code)



fakeSw
StringWriter fakeSw(Code)





Method Detail
addZULDynamicAttribute
protected void addZULDynamicAttribute(String name, Object value)(Code)
set the attribute(name) of this component to value, the difference between this method and LeafComponent.setAttributeValue is this method directly replace the attribute whether the attribute associate to a ValueBinding. Note: set attribute after LeafComponent.loadZULTree(org.zkoss.zk.ui.Page,StringWriter) doesn't affect the ZUL Component which is associated to this component.
Parameters:
  name - attribute name of component
Parameters:
  value - value of attribute



afterComposeComponent
void afterComposeComponent()(Code)
after children creation do dynamic attributes setter work and registers event handler. Called by LeafComponent.loadZULTree .



afterZULComponentComposed
protected void afterZULComponentComposed(Component zulcomp)(Code)
This method give the delivering class a chance to handle ZUL Component just after it is composed.
This method will be invoked after ZUL component is composed and listener, attribute of ZUL component is setted. Note: Default implementation do nothing.



encodeBegin
public void encodeBegin(FacesContext context) throws IOException(Code)
Override method, We Construct ZUL JSF Component tree here. This method is called by JSF implementation, deriving class rarely need to invoke this method.



encodeChildren
public void encodeChildren(FacesContext context) throws IOException(Code)



encodeEnd
public void encodeEnd(FacesContext context) throws IOException(Code)
Override Method, write a special mark denoting the component in this method



evaluateDynaAttributes
protected void evaluateDynaAttributes(Component target, Map zulAttrMap) throws ModificationException, NoSuchMethodException(Code)
Test if the attributes are annotation or component attributes.
If is Component attributes then invokes setter methods to update all assigned attributes. If is annotations then add annotation to component
Parameters:
  target - the target component
throws:
  NoSuchMethodException -
throws:
  ModificationException -



getAttributeValue
public Object getAttributeValue(String att)(Code)
Get value of attribute of Component. if value of attribute is a ValueBinding, then Binding result will return.
Parameters:
  att - attribute name value of attribute



getComponentDefName
protected String getComponentDefName()(Code)
get the component definition name of this component
The default implementation change the class name to lower char and return
a ZUL component name



getComponentInfo
protected ComponentInfo getComponentInfo()(Code)
Get ComponentInfo for current Component Tree.
it always return RootComponent's getComponentInfo(), if RootComponent doesn't exist return null;



getForward
public String getForward()(Code)
Returns the forward condition that controls how to forward an event, that is received by the component created by this info, to another component.

Default: null.

If not null, when the component created by this info receives the event specified in the forward condition, it will forward it to the target component, which is also specified in the forward condition.
See Also:   LeafComponent.setForward




getParentComponent
BranchComponent getParentComponent()(Code)
Returns the Parent Component



getRendersChildren
public boolean getRendersChildren()(Code)
Override Method, don't render children my self. return false;



getRootComponent
RootComponent getRootComponent()(Code)
Returns the RootComponent that this Component belongs to.



getUIForm
UIForm getUIForm()(Code)
get parent UI Form of this component. the parent component which type is UIForm.



getUse
public String getUse()(Code)
Returns the class name that is used to implement the ZUL Component associated with this ZULJSF Component.

Default: null the class name used to implement the ZUL Component, or nullto use the default




getZULComponent
protected Component getZULComponent()(Code)
Returns the ZUL Component associated with this ZUL JSF Component the associated ZUL Component is only exist after LeafComponent.loadZULTree



initComponent
void initComponent(org.zkoss.zk.ui.Page page)(Code)
Create ZUL Component, and then associate it to it's Parent Component or Page Component Called by LeafComponent.loadZULTree .



loadZULTree
protected void loadZULTree(org.zkoss.zk.ui.Page page, StringWriter writer) throws IOException(Code)
Call by RootComponent or BranchComponent to load zk stuff.



restoreState
public void restoreState(FacesContext context, Object state)(Code)
Override Method, restore the state of this component.



saveState
public Object saveState(FacesContext context)(Code)
Override Method, save the state of this component.



setAttributeValue
public void setAttributeValue(String att, Object value)(Code)
set value to attribute of Component, if a ValueBinding is associated with attribute , then it will set value to Binding Object
Note: set attribute after LeafComponent.loadZULTree doesn't affect the ZUL Component which is associated to this component.
Parameters:
  att - attribute name
Parameters:
  value - attribute value;



setForward
public void setForward(String forward)(Code)
Sets the forward condition that controls when to forward an event receiving by this component to another component.

The basic format:
onEvent1=id1/id2.onEvent2

It means when onEvent1 is received, onEvent2 will be posted to the component with the specified path (id1/id2).

If onEvent1 is omitted, it is assumed to be onClick (and the equal sign need not to be specified. If the path is omitted, it is assumed to be the space owner Component.getSpaceOwner .

For example, "onOK" means "onClick=onOK".

You can specify several forward conditions by separating them with comma as follows:

onChanging=onChanging,onChange=onUpdate,onOK
Parameters:
  forward - the forward condition. There are several forms:"onEvent1", "target.onEvent1" and "onEvent1(target.onEvent2)",where target could be "id", "id1/id2" or "${elExpr}".The EL expression must return either a path or a reference toa component.




setId
public void setId(String id)(Code)
Override Method, remember the id is set.



setUse
public void setUse(String use)(Code)
Sets the class name that is used to implement the ZUL Component associated with this ZULJSF Component.
Parameters:
  use - the class name used to implement the ZUL Component, or nullto use the default



setZULCustomAttribute
void setZULCustomAttribute(Map map)(Code)
set custom attributes of this ZULJSF Component, This method is called by BaseCustomeAttribute only,
Parameters:
  map -



setZULDynamicAttribute
public void setZULDynamicAttribute(Map map)(Code)
Set dynamic Attribute of this ZULJSF Component, This method is called by LeafTag only, developer should not call this method directly.
Parameters:
  map - the dynamic attributes.



writeComponentMark
void writeComponentMark(Writer writer) throws IOException(Code)
Writes a special mark to the output to denote the location of this component.



Methods inherited from org.zkoss.jsf.zul.impl.AbstractComponent
protected UIComponent findAncestorWithClass(UIComponent component, Class clazz)(Code)(Java Doc)
protected String getBodyContent()(Code)(Java Doc)
protected ComponentInfo getComponentInfo()(Code)(Java Doc)
public FacesContext getFacesContext()(Code)(Java Doc)
public String getFamily()(Code)(Java Doc)
public boolean getIf()(Code)(Java Doc)
public boolean getUnless()(Code)(Java Doc)
public boolean isEffective()(Code)(Java Doc)
protected boolean isSuppressed()(Code)(Java Doc)
protected void loadZULTree(org.zkoss.zk.ui.Page page, StringWriter writer) throws IOException(Code)(Java Doc)
protected static Map restoreAttachedMapState(FacesContext context, Object keys, Object values)(Code)(Java Doc)
public void restoreState(FacesContext context, Object state)(Code)(Java Doc)
protected static Object[] saveAttachedMapState(FacesContext context, Map mapObject)(Code)(Java Doc)
public Object saveState(FacesContext context)(Code)(Java Doc)
public void setBodyContent(String content)(Code)(Java Doc)
public void setIf(boolean ifcond)(Code)(Java Doc)
public void setSuppressed(boolean suppressed)(Code)(Java Doc)
public void setUnless(boolean unless)(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.