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


com.sun.rave.web.ui.renderer.AbstractRenderer

All known Subclasses:   com.sun.rave.web.ui.renderer.LegendRenderer,  com.sun.rave.web.ui.renderer.RowColumnRenderer,  com.sun.rave.web.ui.renderer.FrameSetRenderer,  com.sun.rave.web.ui.renderer.FrameRenderer,  com.sun.rave.web.ui.renderer.BreadcrumbsRenderer,  com.sun.rave.web.ui.renderer.LinkRenderer,  com.sun.rave.web.ui.renderer.ButtonRenderer,  com.sun.rave.web.ui.renderer.MessageGroupRenderer,  com.sun.rave.web.ui.renderer.HyperlinkRenderer,  com.sun.rave.web.ui.renderer.PageSeparatorRenderer,  com.sun.rave.web.ui.renderer.AlertRenderer,  com.sun.rave.web.ui.renderer.MessageRenderer,  com.sun.rave.web.ui.renderer.ImageRenderer,  com.sun.rave.web.ui.renderer.AnchorRenderer,  com.sun.rave.web.ui.renderer.MetaRenderer,  com.sun.rave.web.ui.renderer.StaticTextRenderer,  com.sun.rave.web.ui.renderer.HeadRenderer,  com.sun.rave.web.ui.renderer.FormRenderer,  com.sun.rave.web.ui.renderer.HelpInlineRenderer,  com.sun.rave.web.ui.renderer.RbCbRendererBase,  com.sun.rave.web.ui.renderer.PageAlertRenderer,  com.sun.rave.web.ui.renderer.CalendarMonthRenderer,  com.sun.rave.web.ui.renderer.PanelGroupRenderer,  com.sun.rave.web.ui.renderer.SkipHyperlinkRenderer,  com.sun.rave.web.ui.renderer.TabSetRenderer,  com.sun.rave.web.ui.renderer.HtmlRenderer,  com.sun.rave.web.ui.renderer.BodyRenderer,  com.sun.rave.web.ui.renderer.MarkupRenderer,  com.sun.rave.web.ui.renderer.PanelLayoutRenderer,  com.sun.rave.web.ui.renderer.ScriptRenderer,
AbstractRenderer
abstract public class AbstractRenderer extends Renderer (Code)

Abstract base class for concrete implementations of javax.faces.render.Renderer for JavaServer Faces component libraries.



Field Summary
final protected static  StringBUNDLE
    
final public static  StringEVENTS_ATTRIBUTES
    
final public static  StringI18N_ATTRIBUTES
    


Method Summary
protected  voidaddBooleanAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names)
    

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

protected  voidaddCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles)
    

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

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

Render any Integer attributes on the specified list that do not have Integer.MIN_VALUE values on the corresponding attribute of the specified UIComponent.

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

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

public  voiddecode(FacesContext context, UIComponent component)
    

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() on components that implement EditableValueHolder (i.e.

public  voidencodeBegin(FacesContext context, UIComponent component)
    
public  voidencodeChildren(FacesContext context, UIComponent component)
    
public  voidencodeEnd(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  ObjectgetSubmittedValue(FacesContext context, UIComponent component)
    

Retrieve the submitted value from the request parameters for this request.

protected  booleanisDisabled(UIComponent component)
    
protected  booleanisPortlet(FacesContext context)
    
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  voidrenderEnd(FacesContext context, UIComponent component, ResponseWriter writer)
    

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

protected  voidrenderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup)
    
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
BUNDLE
final protected static String BUNDLE(Code)

Base naem of the resource bundle we will use for localization.




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
addBooleanAttributes
protected void addBooleanAttributes(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. Attribute names are converted to lower case in the rendered output.


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



addCoreAttributes
protected void addCoreAttributes(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



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

Render any Integer attributes on the specified list that do not have Integer.MIN_VALUE values on the corresponding attribute of the specified UIComponent. Attribute names are converted to lower case in the rendered output.


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



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

Add any attributes on the specified list directly to the specified ResponseWriter for which the specified UIComponent has a non-null String value. This method may be used to "pass through" commonly used attribute name/value pairs with a minimum of code. Attribute names are converted to lower case in the rendered output.


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



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() on components that implement EditableValueHolder (i.e. input fields)


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



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.




getSubmittedValue
protected Object getSubmittedValue(FacesContext context, UIComponent component)(Code)

Retrieve the submitted value from the request parameters for this request. The default implementation retrieves the parameter value that corresponds to the client identifier of this component.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent whosesubmitted value is to be retrieved



isDisabled
protected boolean isDisabled(UIComponent component)(Code)

Return true if the specified component is disabled.


Parameters:
  component - UIComponent to be checked



isPortlet
protected boolean isPortlet(FacesContext context)(Code)

Return true if we are we running in a portlet environment, as opposed to a servlet based web application.


Parameters:
  context - FacesContext for the current request



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



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



renderMarkup
protected void renderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup) throws IOException(Code)

Render the specified markup to the current response.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent associated with this markup
Parameters:
  writer - ResponseWriter to which the markupshould be rendered
Parameters:
  markup - Markup to be rendered



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.