Java Doc for AbstractRenderer.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » 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 » IDE Netbeans » visualweb.api.designer » com.sun.rave.faces.renderer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.faces.renderer.AbstractRenderer

All known Subclasses:   com.sun.rave.faces.renderer.EncodingRenderer,
AbstractRenderer
abstract public class AbstractRenderer extends Renderer (Code)

Abstract base class for concrete implementations of javax.faces.render.Renderer for the Widgets Library.



Field Summary
final public static  StringEVENTS_ATTRIBUTES
    
final public static  StringI18N_ATTRIBUTES
    


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  ApplicationgetApplication()
    
protected  ObjectgetAsObject(FacesContext context, UIComponent component, String value)
    
protected  StringgetAsString(FacesContext context, UIComponent component)
    
protected  ExternalContextgetExternalContext()
    
protected  FacesContextgetFacesContext()
    
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  voidrenderCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles)
    

Render the "core" set of attributes for this UIComponent.

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.


Field Detail
EVENTS_ATTRIBUTES
final public static String EVENTS_ATTRIBUTES(Code)

The list of attribute names in the HTML 4.01 Specification that correspond to the entity type %events;.




I18N_ATTRIBUTES
final public static String I18N_ATTRIBUTES(Code)

The list of attribute names in the HTML 4.01 Specification that correspond to the entity type %i18n;.






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.




getApplication
protected Application getApplication()(Code)

Return the Application instance for this web application.




getAsObject
protected Object getAsObject(FacesContext context, UIComponent component, String value)(Code)

Return the value to be stored, as an Object that has been converted from the String representation (if necessary), or null if the String representation is null.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - Component whose value is being processed(must be a component that implements ValueHolder
Parameters:
  value - String representation of the value



getAsString
protected String getAsString(FacesContext context, UIComponent component)(Code)

Return the value to be rendered, as a String (converted if necessary), or null if the value is null.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - Component whose value is to be retrieved (must bea component that implements ValueHolder)



getExternalContext
protected ExternalContext getExternalContext()(Code)

Return the ExternalContext instance for the current request.




getFacesContext
protected FacesContext getFacesContext()(Code)

Return the FacesContext instance for the current request.




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



renderCoreAttributes
protected void renderCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles) throws IOException(Code)

Render the "core" set of attributes for this UIComponent. The default implementation conditionally generates the following attributes with values as specified.

  • id - If this component has a non-null id property, and the identifier does not start with UIViewRoot.UNIQUE_ID_PREFIX, render the clientId.
  • class - If this component has a non-null styleClass attribute, render its value, combined with the syles parameter (if any).
  • style - If this component has a non-null style attribute, render its value.
  • title - If this component has a non-null title attribute, render its value.

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:
  styles - Space-separated list of CSS style classes to addto the class attribute, or null for none
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.