Java Doc for AbstractRenderer.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » faces » renderer » 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 » Web Framework » struts 1.3.8 » org.apache.struts.faces.renderer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.struts.faces.renderer.AbstractRenderer

All known Subclasses:   org.apache.struts.faces.renderer.FormRenderer,  org.apache.struts.faces.renderer.WriteRenderer,  org.apache.struts.faces.renderer.BaseRenderer,  org.apache.struts.faces.renderer.StylesheetRenderer,  org.apache.struts.faces.renderer.HtmlRenderer,  org.apache.struts.faces.renderer.ErrorsRenderer,  org.apache.struts.faces.renderer.CommandLinkRenderer,
AbstractRenderer
abstract public class AbstractRenderer extends Renderer (Code)

Abstract base class for concrete implementations of javax.faces.render.Renderer for the Struts-Faces Integration Library.


version:
   $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $




Method Summary
public  voiddecode(FacesContext context, UIComponent component)
    
public  voidencodeBegin(FacesContext context, UIComponent component)
    
public  voidencodeChildren(FacesContext context, UIComponent component)
    
public  voidencodeEnd(FacesContext context, UIComponent component)
    
protected  voidencodeRecursive(FacesContext context, UIComponent component)
    
protected  StringgetAsString(FacesContext context, UIComponent component, Object value)
    

Convert the Object representation of this component's value to the corresponding String representation.

protected  booleanisDisabled(UIComponent component)
    
protected  booleanisReadOnly(UIComponent component)
    
protected  voidrenderAttributes(FacesContext context, UIComponent component, ResponseWriter writer)
    

Render the element attributes for the generated markup related to this component.

protected  voidrenderBoolean(FacesContext context, UIComponent component, ResponseWriter writer, String names)
    
protected  voidrenderEnd(FacesContext context, UIComponent component, ResponseWriter writer)
    

Render the element end for the generated markup related to this component.

protected  voidrenderPassThrough(FacesContext context, UIComponent component, ResponseWriter writer, String names)
    

Render any attributes on the specified list directly to the specified ResponseWriter for which the specified UIComponent has a non-null attribute value.

protected  voidrenderStart(FacesContext context, UIComponent component, ResponseWriter writer)
    

Render the element start for the generated markup related to this component.

protected  voidsetSubmittedValue(FacesContext context, UIComponent component)
    

If a submitted value was included on this request, store it in the component as appropriate.

The default implementation determines whether this component implements EditableValueHolder.




Method Detail
decode
public void decode(FacesContext context, UIComponent component)(Code)

Decode any new state of the specified UIComponent from the request contained in the specified FacesContext, and store that state on the UIComponent.

The default implementation calls setSubmittedValue() unless this component has a boolean disabled or readonly attribute that is set to true.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent to be decoded
exception:
  NullPointerException - if context orcomponent is null



encodeBegin
public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code)

Render the beginning of the specified UIComponent to the output stream or writer associated with the response we are creating.

The default implementation calls renderStart() and renderAttributes().


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent to be decoded
exception:
  NullPointerException - if context orcomponent is null
exception:
  IOException - if an input/output error occurs



encodeChildren
public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)

Render the children of the specified UIComponent to the output stream or writer associated with the response we are creating.

The default implementation iterates through the children of this component and renders them.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent to be decoded
exception:
  NullPointerException - if context orcomponent is null
exception:
  IOException - if an input/output error occurs



encodeEnd
public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code)

Render the ending of the specified UIComponent to the output stream or writer associated with the response we are creating.

The default implementation calls renderEnd().


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent to be decoded
exception:
  NullPointerException - if context orcomponent is null
exception:
  IOException - if an input/output error occurs



encodeRecursive
protected void encodeRecursive(FacesContext context, UIComponent component) throws IOException(Code)

Render nested child components by invoking the encode methods on those components, but only when the rendered property is true.




getAsString
protected String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException(Code)

Convert the Object representation of this component's value to the corresponding String representation. The default implementation utilizes the getAsString() method of any associated Converter.


Parameters:
  context - The FacesContext for this request
Parameters:
  component - The UIComponent whose value isbeing converted
Parameters:
  value - The Object representation to be converted
exception:
  ConverterException - if conversion fails



isDisabled
protected boolean isDisabled(UIComponent component)(Code)

Return true if the specified component is disabled.


Parameters:
  component - UIComponent to be checked



isReadOnly
protected boolean isReadOnly(UIComponent component)(Code)

Return true if the specified component is read only.


Parameters:
  component - UIComponent to be checked



renderAttributes
protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)

Render the element attributes for the generated markup related to this component. Simple renderers that create a single markup element for this component should override this method and include calls to to writeAttribute() and writeURIAttribute on the specified ResponseWriter.

The default implementation does nothing.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - EditableValueHolder component whosesubmitted value is to be stored
Parameters:
  writer - ResponseWriter to which the elementstart should be rendered
exception:
  IOException - if an input/output error occurs



renderBoolean
protected void renderBoolean(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)

Render any boolean attributes on the specified list that have true values on the corresponding attribute of the specified UIComponent.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - EditableValueHolder component whosesubmitted value is to be stored
Parameters:
  writer - ResponseWriter to which the elementstart should be rendered
Parameters:
  names - List of attribute names to be passed through
exception:
  IOException - if an input/output error occurs



renderEnd
protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)

Render the element end for the generated markup related to this component. Simple renderers that create a single markup element for this component should override this method and include a call to endElement() on the specified ResponseWriter.

The default implementation does nothing.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - EditableValueHolder component whosesubmitted value is to be stored
Parameters:
  writer - ResponseWriter to which the elementstart should be rendered
exception:
  IOException - if an input/output error occurs



renderPassThrough
protected void renderPassThrough(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)

Render any attributes on the specified list directly to the specified ResponseWriter for which the specified UIComponent has a non-null attribute value. This method may be used to "pass through" commonly used attribute name/value pairs with a minimum of code.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - EditableValueHolder component whosesubmitted value is to be stored
Parameters:
  writer - ResponseWriter to which the elementstart should be rendered
Parameters:
  names - List of attribute names to be passed through
exception:
  IOException - if an input/output error occurs



renderStart
protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)

Render the element start for the generated markup related to this component. Simple renderers that create a single markup element for this component should override this method and include a call to startElement() on the specified ResponseWriter.

The default implementation does nothing.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - EditableValueHolder component whosesubmitted value is to be stored
Parameters:
  writer - ResponseWriter to which the elementstart should be rendered
exception:
  IOException - if an input/output error occurs



setSubmittedValue
protected void setSubmittedValue(FacesContext context, UIComponent component)(Code)

If a submitted value was included on this request, store it in the component as appropriate.

The default implementation determines whether this component implements EditableValueHolder. If so, it checks for a request parameter with the same name as the clientId of this UIComponent. If there is such a parameter, its value is passed (as a String) to the setSubmittedValue() method on the EditableValueHolder component.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - EditableValueHolder component whosesubmitted value is to be stored



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