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

All known Subclasses:   org.zkoss.jsf.zul.impl.Inline,  org.zkoss.jsf.zul.impl.BaseCustomAttributes,  org.zkoss.jsf.zul.impl.BaseZScript,  org.zkoss.jsf.zul.impl.BaseAttribute,  org.zkoss.jsf.zul.impl.RootComponent,  org.zkoss.jsf.zul.impl.BaseInit,  org.zkoss.jsf.zul.impl.BaseComponentDefinition,  org.zkoss.jsf.zul.impl.LeafComponent,
AbstractComponent
public class AbstractComponent extends UIComponentBase (Code)
The skeletal class for implementing the generic ZULJSF Component. This component handle _if, _unless attributes of ZUL Component. This component also handle bodyContent which is set by org.zkoss.jsf.zul.tag.impl.AbstractTag.doAfterBody
author:
   Dennis.Chen




Method Summary
protected  UIComponentfindAncestorWithClass(UIComponent component, Class clazz)
     A convenient method for finding ancestor of special class.
protected  StringgetBodyContent()
     get the body content of this ZULJSF Component.
protected  ComponentInfogetComponentInfo()
     Get ComponentInfo for current Component Tree.
In LeafComponent, it always return RootComponent's getComponentInfo(), if RootComponent doesn't exist return null;
In RootComponet , it check a existed instance and return it, if not, a new instance will be created and return.
Note : return null in default implementation.
public  FacesContextgetFacesContext()
     get current FacesContext for this component, this method is protected in super class, I public it for convenient usage.
public  StringgetFamily()
     get Component Family of ZULJSF Component.
public  booleangetIf()
     Returns the if condition.
public  booleangetUnless()
     Returns the unless condition.
public  booleanisEffective()
     Returns whether this component is effective.
protected  booleanisSuppressed()
    
protected  voidloadZULTree(org.zkoss.zk.ui.Page page, StringWriter writer)
     Call by RootComponent or BranchComponent to load tree structure of zk zul components.
protected static  MaprestoreAttachedMapState(FacesContext context, Object keys, Object values)
     a convenient to restore the state of a Map.
public  voidrestoreState(FacesContext context, Object state)
     Override Method, restore the state of this component.
protected static  Object[]saveAttachedMapState(FacesContext context, Map mapObject)
     a convenient to save the state of a Map.
public  ObjectsaveState(FacesContext context)
     Override Method, save the state of this component.
public  voidsetBodyContent(String content)
     Set BodyContnet, this method is called by org.zkoss.jsf.zul.tag.impl.AbstractTag to setup JSP Body Content, developer rarely call this method.
public  voidsetIf(boolean ifcond)
     Sets the if condition.
public  voidsetSuppressed(boolean suppressed)
     set suppressed by org.zkoss.jsf.zul.tag.impl.AbstractTag only, developer should not call this method.
public  voidsetUnless(boolean unless)
     Sets the unless condition.



Method Detail
findAncestorWithClass
protected UIComponent findAncestorWithClass(UIComponent component, Class clazz)(Code)
A convenient method for finding ancestor of special class. this method is use to build ZULJSF component tree under JSF component tree.
Parameters:
  component - a component, usually a AbstractComponent instance
Parameters:
  clazz - a class, usually a AbstractComponent class a ancestor Component



getBodyContent
protected String getBodyContent()(Code)
get the body content of this ZULJSF Component. the body content of JSP



getComponentInfo
protected ComponentInfo getComponentInfo()(Code)
Get ComponentInfo for current Component Tree.
In LeafComponent, it always return RootComponent's getComponentInfo(), if RootComponent doesn't exist return null;
In RootComponet , it check a existed instance and return it, if not, a new instance will be created and return.
Note : return null in default implementation. a ComponentInfo of current Component Tree



getFacesContext
public FacesContext getFacesContext()(Code)
get current FacesContext for this component, this method is protected in super class, I public it for convenient usage.



getFamily
public String getFamily()(Code)
get Component Family of ZULJSF Component.



getIf
public boolean getIf()(Code)
Returns the if condition. If the if condition is false, this component is ignored. If the unless condition ( AbstractComponent.getUnless ) is true, this component is ignored, too. Components deriving from this class shall invoke AbstractComponent.isEffective to know the result.

Default: true.




getUnless
public boolean getUnless()(Code)
Returns the unless condition. If the unless condition is true, this component is ignored. If the if condition ( AbstractComponent.getIf ) is true, this component is ignored, too. Components deriving from this class shall invoke AbstractComponent.isEffective to know the result.

Default: false.




isEffective
public boolean isEffective()(Code)
Returns whether this component is effective. If false, this component does nothing (as if not specified at all).



isSuppressed
protected boolean isSuppressed()(Code)

Return true if rendering should be suppressed because of any of the follow reasons.

  • The component is a facet (whose rendering, if any), is always the responsibility of the owing component.
  • The component has its rendered property set to false.
  • The component is a child of a parent whose rendersChildren is true.
  • The component is a child of a parent whose rendering is itself suppressed.



loadZULTree
protected void loadZULTree(org.zkoss.zk.ui.Page page, StringWriter writer) throws IOException(Code)
Call by RootComponent or BranchComponent to load tree structure of zk zul components. This method is invoked from a RootComponent's encodeEnd() or a BranchComponent's loadZK(). It will go through all ZULJSF Component Tree to initial ZUL Component of corresponding ZULJSFComponent.
Note: Do nothing in default implementation.



restoreAttachedMapState
protected static Map restoreAttachedMapState(FacesContext context, Object keys, Object values)(Code)
a convenient to restore the state of a Map.
Parameters:
  context - FacesContext
Parameters:
  keys - a Object which is create by AbstractComponent.saveAttachedMapState[0]
Parameters:
  values - a Object which is create by AbstractComponent.saveAttachedMapState[1] restored Map instance



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



saveAttachedMapState
protected static Object[] saveAttachedMapState(FacesContext context, Map mapObject)(Code)
a convenient to save the state of a Map.
Parameters:
  context - FacesContext
Parameters:
  mapObject - a Map to save two handled Object, Object[0] handle the state of keys of Map, Object[1] handle the state of values of Map.



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



setBodyContent
public void setBodyContent(String content)(Code)
Set BodyContnet, this method is called by org.zkoss.jsf.zul.tag.impl.AbstractTag to setup JSP Body Content, developer rarely call this method.
Parameters:
  content - content of this component



setIf
public void setIf(boolean ifcond)(Code)
Sets the if condition.



setSuppressed
public void setSuppressed(boolean suppressed)(Code)
set suppressed by org.zkoss.jsf.zul.tag.impl.AbstractTag only, developer should not call this method.
Parameters:
  suppressed -



setUnless
public void setUnless(boolean unless)(Code)
Sets the unless condition.



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