Java Doc for HyperlinkRenderer.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
   com.sun.rave.web.ui.renderer.HyperlinkRenderer

All known Subclasses:   com.sun.rave.web.ui.renderer.TabRenderer,  com.sun.rave.web.ui.renderer.ImageHyperlinkRenderer,
HyperlinkRenderer
public class HyperlinkRenderer extends AbstractRenderer (Code)

This class is responsible for rendering the Hyperlink component for the HTML Render Kit.

The Hyperlink component can be used as an anchor, a plain hyperlink or a hyperlink that submits the form depending on how the properites are filled out for the component





Method Summary
public  voiddecode(FacesContext context, UIComponent component)
    

Decode will determine if this component was the one that submitted the form.

public  voidencodeChildren(FacesContext context, UIComponent component)
    
protected  voidfinishRenderAttributes(FacesContext context, UIComponent component, ResponseWriter writer)
    
public  booleangetRendersChildren()
    
protected  StringgetStyles(FacesContext context, UIComponent component)
    
protected  voidrenderAttributes(FacesContext context, UIComponent component, ResponseWriter writer)
    

Render the attributes for an anchor tag.

protected  voidrenderChildren(FacesContext context, UIComponent component)
     This method is called by renderEnd.
protected  voidrenderEnd(FacesContext context, UIComponent component, ResponseWriter writer)
    
protected  voidrenderLink(FacesContext context, UIComponent component, ResponseWriter writer)
    
protected  voidrenderStart(FacesContext context, UIComponent component, ResponseWriter writer)
    



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

Decode will determine if this component was the one that submitted the form. It determines this by looking for the hidden field with the link's name appended with an "_submittedField" If this hidden field contains the id of the component then this component submitted the form.


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



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



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



getRendersChildren
public boolean getRendersChildren()(Code)



getStyles
protected String getStyles(FacesContext context, UIComponent component)(Code)
This function returns the style classes necessary to display the Hyperlink component as it's state indicates the style classes needed to display the current state of the component



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

Render the attributes for an anchor tag. The onclick attribute will contain extra javascript that will appropriately submit the form if the URL field is not set.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent to be rendered
Parameters:
  writer - ResponseWriter to which the elementattributes should be rendered
exception:
  IOException - if an input/output error occurs



renderChildren
protected void renderChildren(FacesContext context, UIComponent component) throws IOException(Code)
This method is called by renderEnd. It is provided so renderers that extend HyperlinkRenderer (such as TabRenderer) may override it in order to prevent children from always being rendered.
Parameters:
  context - The current FacesContext.
Parameters:
  component - The current component.



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

Close off the anchor tag.


Parameters:
  context - FacesContext for the current request
Parameters:
  component - UIComponent to be rendered
Parameters:
  writer - ResponseWriter to which the elementend should be rendered
exception:
  IOException - if an input/output error occurs



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



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

Render the start of an anchor (hyperlink) tag.


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



Fields inherited from com.sun.rave.web.ui.renderer.AbstractRenderer
final protected static String BUNDLE(Code)(Java Doc)
final public static String EVENTS_ATTRIBUTES(Code)(Java Doc)
final public static String I18N_ATTRIBUTES(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.renderer.AbstractRenderer
protected void addBooleanAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc)
protected void addCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles) throws IOException(Code)(Java Doc)
protected void addIntegerAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc)
protected static void addStringAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc)
public void decode(FacesContext context, UIComponent component)(Code)(Java Doc)
public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc)
public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc)
public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc)
protected Application getApplication()(Code)(Java Doc)
protected Object getAsObject(FacesContext context, UIComponent component, String value)(Code)(Java Doc)
protected String getAsString(FacesContext context, UIComponent component)(Code)(Java Doc)
protected ExternalContext getExternalContext()(Code)(Java Doc)
protected FacesContext getFacesContext()(Code)(Java Doc)
protected Object getSubmittedValue(FacesContext context, UIComponent component)(Code)(Java Doc)
protected boolean isDisabled(UIComponent component)(Code)(Java Doc)
protected boolean isPortlet(FacesContext context)(Code)(Java Doc)
protected boolean isReadOnly(UIComponent component)(Code)(Java Doc)
protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc)
protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc)
protected void renderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup) throws IOException(Code)(Java Doc)
protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc)
protected void setSubmittedValue(FacesContext context, UIComponent component)(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.