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

All known Subclasses:   com.sun.rave.web.ui.renderer.SelectorGroupRenderer,
RowColumnRenderer
abstract class RowColumnRenderer extends AbstractRenderer (Code)
RowColumnRenderer renders a HTML table. The contents are rendered by a subclass during the renderCellContent method, implemented in a subclass. An example of the HTML produced when the subclass renderer is a RadionButtonGroup .

<table class=" RbGrp" style=""> <tbody> <tr class="RbGrpRwOd"> <td class="RbGrpCpt"> <label class="RbGrpLbl" for="form1:_id1_0_input" title="rbgrp-tooltip" id="form1:_id1_caption">Radio Button Group</label> </td> <td class="RbGrpClEv"> <input tabindex="1" class="Rb" value="Server" name="form1:_id1" id="form1:_id1_0_input" type="radio"> <img class="RbImg" src="tree_server.gif" id="form1:_id1_0_image"> <label class="RbLbl LblLev3Txt" for="form1:_id1_0_input" id="form1:_id1_0_label">Server</label> </td> <td class="RbGrpClOd"> <input tabindex="1" class="Rb" value="Volume" name="form1:_id1" id="form1:_id1_1_input" type="radio"> <img class="RbImg" src="volumegroup_tree.gif" id="form1:_id1_1_image"> <label class="RbLbl LblLev3Txt" for="form1:_id1_1_input" id="form1:_id1_1_label">Volume</label> </td> </tr> <tr class="RbGrpRwEv"> <td> </td> <td class="RbGrpClEv"> <input tabindex="1" class="Rb" checked="checked" value="Pool" name="form1:_id1" id="form1:_id1_2_input" type="radio"> <img class="RbImg" src="pool_tree.gif" id="form1:_id1_2_image"> <label class="RbLbl LblLev3Txt" for="form1:_id1_2_input" id="form1:_id1_2_label">Pool</label> </td> <td class="RbGrpClEv"> </td> </tr> </tbody> </table>

The style class selectors are not output by RowColumnRenderer but by a subclass.


Field Summary
final protected static  intCAPTION_STYLE
     Constant indicating a TD element stlye is desired.
final protected static  intCELLEVEN_STYLE
     Constant indicating a TD element style selector is desired.
final protected static  intCELLODD_STYLE
     Constant indicating a TD element style selector is desired.
final protected static  intROWEVEN_STYLE
     Constant indicating a TR element style selector is desired.
final protected static  intROWODD_STYLE
     Constant indicating a TR element style selector is desired.
final protected static  intTABLE_STYLE
     Constant indicating a TABLE element style selector is desired.

Constructor Summary
public  RowColumnRenderer()
     Create a RowColumnRenderer instance.

Method Summary
abstract protected  StringgetRowColumnStyle(Theme theme, int styleCode)
     Get the style class for a structural element of the table.
abstract protected  voidrenderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer)
     Implemented by a subclass.
abstract protected  voidrenderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN)
     Implemented by a subclass.
protected  voidrenderRowColumnLayout(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int rows, int columns)
    

Field Detail
CAPTION_STYLE
final protected static int CAPTION_STYLE(Code)
Constant indicating a TD element stlye is desired. This selector is used for the TD element that contains the group label.



CELLEVEN_STYLE
final protected static int CELLEVEN_STYLE(Code)
Constant indicating a TD element style selector is desired. The selector is applied to an even column.



CELLODD_STYLE
final protected static int CELLODD_STYLE(Code)
Constant indicating a TD element style selector is desired. The selector is applied to an odd column.



ROWEVEN_STYLE
final protected static int ROWEVEN_STYLE(Code)
Constant indicating a TR element style selector is desired. The selector is applied to an odd row.



ROWODD_STYLE
final protected static int ROWODD_STYLE(Code)
Constant indicating a TR element style selector is desired. The selector is applied to an even row.



TABLE_STYLE
final protected static int TABLE_STYLE(Code)
Constant indicating a TABLE element style selector is desired.




Constructor Detail
RowColumnRenderer
public RowColumnRenderer()(Code)
Create a RowColumnRenderer instance.




Method Detail
getRowColumnStyle
abstract protected String getRowColumnStyle(Theme theme, int styleCode)(Code)
Get the style class for a structural element of the table. styleCode is one of.

  • TABLE_STYLE
  • CAPTION_STYLE
  • ROWEVEN_STYLE
  • ROWODD_STYLE
  • CELLEVEN_STYLE
  • CELLODD_STYLE

  • Parameters:
      context - FacesContext for the current request
    Parameters:
      styleCode - one the predefined constants.



    renderCaption
    abstract protected void renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code)
    Implemented by a subclass. Called when the subclass should render the CAPTION element for the table.
    Parameters:
      context - FacesContext for the current request
    Parameters:
      component - component being rendered
    Parameters:
      writer - ResponseWriter to which the HTML is rendered



    renderCellContent
    abstract protected void renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) throws IOException(Code)
    Implemented by a subclass. Called when subclass should render the contents of the cell for the itemN'th renderer cell.
    Parameters:
      context - FacesContext for the current request
    Parameters:
      component - component being rendered
    Parameters:
      writer - ResponseWriter to which the HTML is rendered
    Parameters:
      itemN - the nth cell to be rendered.



    renderRowColumnLayout
    protected void renderRowColumnLayout(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int rows, int columns) throws IOException(Code)
    Called from a subclass when rendering is to begin
    Parameters:
      context - FacesContext for the current request
    Parameters:
      component - RadioButtonGroup component rendered
    Parameters:
      writer - ResponseWriter to which the HTML is rendered
    Parameters:
      rows - the number of rows to render
    Parameters:
      columns - the number of columns to render



    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.