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

CheckboxGroupRenderer
public class CheckboxGroupRenderer extends SelectorGroupRenderer (Code)
The CheckboxGroupRenderer renders a CheckboxGroup component as set of checkboxes. The CheckboxGroupRenderer creates an instance of Checkbox for each Option instance in the Array, Map, or Collection returned by the CheckboxGroup getItems() method and renders them. It also creates a Label component and renders it as the label for the group.

Zero or more checkboxes may be selected. The value of the CheckboxGroup will determine which checkboxes shall be initially selected and subsequetly hold the current selections.

The checkboxes are rendered as a single column or some number of rows and columns. The rows and columns are rendered as a table as defined by the com.sun.rave.web.ui.renderer.RowColumnRenderer superclass. The elements that make up the checkbox occupy a cell in the table. The style class selector for the group elements is identified by a java constants defined in the com.sun.rave.web.ui.theme.ThemeStyles class.

  • CHECKBOX_GROUP for the TABLE element.
  • CHECKBOX_GROUP_CAPTION for the TD element containing the group label
  • CHECKBOX_GROUP_LABEL for the LABEL element used as the CAPTION
  • CHECKBOX_GROUP_LABEL_DISABLED for the LABEL used as the CAPTION if the group is disabled
  • CHECKBOX_GROUP_ROW_EVEN for even TR elements
  • CHECKBOX_GROUP_ROW_ODD for odd TR elements
  • CHECKBOX_GROUP_CELL_EVEN for even TD elements
  • CHECKBOX_GROUP_CELL_ODD for odd TD elements
  • CHECKBOX for the INPUT element
  • CHECKBOX_DISABLED for the INPUT element for disabled checkbox
  • CHECKBOX_LABEL for a LABEL element of a checkbox
  • CHECKBOX_LABEL_DISABLED for a LABEL element of a disabled checkbox
  • CHECKBOX_IMAGE for an IMG element of a checkbox
  • CHECKBOX_IMAGE_DISABLED for an IMG element of a disabled checkbox

The name property of each checkbox is the component id of the CheckboxGroup instance. The id of a Checkbox component is cbgrpid_N where cbgrpid is the id of the CheckboxGroup instance and _N is the nth checkbox.

The CheckboxGroup is decoded by identifying the CheckboxGroup instance component id which is returned as a request parameter. It represents the name attribute of the selected checkbox's <input> element. The values of the identified request parameter are assigned as the submitted value of the CheckboxGroup component.

If the items property of the CheckboxGroup is null or zero length, no output is produced.



Field Summary
protected  String[]styles
     The style constants defined in com.sun.rave.web.ui.theme.ThemeStyles mapped to the value of constants defined in com.sun.rave.web.ui.renderer.SelectorGroupRenderer .

Constructor Summary
public  CheckboxGroupRenderer()
    

Method Summary
protected  UIComponentgetSelectorComponent(FacesContext context, UIComponent component, Theme theme, String id, Option option)
     Return a Checkbox component to render.
protected  String[]getStyles()
     Return style constants for a Checkbox component.
public  voidrenderEnd(FacesContext context, UIComponent component, ResponseWriter writer)
     CheckboxGroupRenderer renders the entire CheckboxGroup component within the renderEnd method.
public  voidrenderStart(FacesContext context, UIComponent component, ResponseWriter writer)
     Ensure that the component to be rendered is a CheckboxGroup instance.

Field Detail
styles
protected String[] styles(Code)
The style constants defined in com.sun.rave.web.ui.theme.ThemeStyles mapped to the value of constants defined in com.sun.rave.web.ui.renderer.SelectorGroupRenderer .




Constructor Detail
CheckboxGroupRenderer
public CheckboxGroupRenderer()(Code)
Creates a new instance of CheckboxGroupRenderer




Method Detail
getSelectorComponent
protected UIComponent getSelectorComponent(FacesContext context, UIComponent component, Theme theme, String id, Option option)(Code)
Return a Checkbox component to render.
Parameters:
  context - FacesContext for the current request
Parameters:
  component - CheckboxGroup component rendered
Parameters:
  theme - Theme for the component
Parameters:
  option - the Option being rendered.



getStyles
protected String[] getStyles()(Code)
Return style constants for a Checkbox component.



renderEnd
public void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)
CheckboxGroupRenderer renders the entire CheckboxGroup component within the renderEnd method.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - UIComponent to be decoded.



renderStart
public void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)
Ensure that the component to be rendered is a CheckboxGroup instance. Actual rendering occurs during the renderEnd method.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - UIComponent to be decoded.



Fields inherited from com.sun.rave.web.ui.renderer.SelectorGroupRenderer
final protected static int GRP(Code)(Java Doc)
final protected static int GRP_CAPTION(Code)(Java Doc)
final protected static int GRP_CELL_EVEN(Code)(Java Doc)
final protected static int GRP_CELL_ODD(Code)(Java Doc)
final protected static int GRP_LABEL(Code)(Java Doc)
final protected static int GRP_LABEL_DIS(Code)(Java Doc)
final protected static int GRP_ROW_EVEN(Code)(Java Doc)
final protected static int GRP_ROW_ODD(Code)(Java Doc)
final protected static int IMAGE(Code)(Java Doc)
final protected static int IMAGE_DIS(Code)(Java Doc)
final protected static int INPUT(Code)(Java Doc)
final protected static int INPUT_DIS(Code)(Java Doc)
final protected static int LABEL(Code)(Java Doc)
final protected static int LABEL_DIS(Code)(Java Doc)
final protected static int LABEL_LVL1(Code)(Java Doc)
final protected static int LABEL_LVL2(Code)(Java Doc)
final protected static int LABEL_LVL3(Code)(Java Doc)
final protected static int LABEL_LVL_DEF(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.renderer.SelectorGroupRenderer
public void decode(FacesContext context, UIComponent component)(Code)(Java Doc)
public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc)
protected Option[] getItems(Selector selector)(Code)(Java Doc)
final protected String getRowColumnStyle(Theme theme, int styleCode)(Code)(Java Doc)
abstract protected UIComponent getSelectorComponent(FacesContext context, UIComponent component, Theme theme, String id, Option option)(Code)(Java Doc)
protected String getStyle(Theme theme, int styleCode, int styleLevelCode)(Code)(Java Doc)
abstract protected String[] getStyles()(Code)(Java Doc)
protected void renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code)(Java Doc)
protected void renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) throws IOException(Code)(Java Doc)
protected void renderEmptyCell(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code)(Java Doc)
protected void renderSelectorGroup(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int columns) throws IOException(Code)(Java Doc)
protected void transferEventAttributes(Selector group, RbCbSelector rbcb)(Code)(Java Doc)

Fields inherited from com.sun.rave.web.ui.renderer.RowColumnRenderer
final protected static int CAPTION_STYLE(Code)(Java Doc)
final protected static int CELLEVEN_STYLE(Code)(Java Doc)
final protected static int CELLODD_STYLE(Code)(Java Doc)
final protected static int ROWEVEN_STYLE(Code)(Java Doc)
final protected static int ROWODD_STYLE(Code)(Java Doc)
final protected static int TABLE_STYLE(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.renderer.RowColumnRenderer
abstract protected String getRowColumnStyle(Theme theme, int styleCode)(Code)(Java Doc)
abstract protected void renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code)(Java Doc)
abstract protected void renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) throws IOException(Code)(Java Doc)
protected void renderRowColumnLayout(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int rows, int columns) throws IOException(Code)(Java Doc)

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.