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

All known Subclasses:   com.sun.rave.web.ui.renderer.RadioButtonGroupRenderer,  com.sun.rave.web.ui.renderer.CheckboxGroupRenderer,
SelectorGroupRenderer
abstract class SelectorGroupRenderer extends RowColumnRenderer (Code)
The SelectorGroupRenderer is the abstract base class for RadioButtonGroupRenderer and CheckboxGroupRenderer . It provides common behavior for driving the RowColumnRenderer superclass. Its decode method provides decoding for both CheckboxGroup and RadioButtonGroup components. It decodes the value as a String[] for both components. For CheckboxGroup components this an array of possibly 0 or more elements. For the RadioButtonGroup component the value is decoded as a String[] of at least one element.


Field Summary
final protected static  intGRP
     The define constant indicating the style class for the top level TABLE element.
final protected static  intGRP_CAPTION
     The define constant indicating the style class for the CSS table CAPTION (a CELL element).
final protected static  intGRP_CELL_EVEN
     The define constant indicating the style class for the even cells.
final protected static  intGRP_CELL_ODD
     The define constant indicating the style class for the odd cells.
final protected static  intGRP_LABEL
     The define constant indicating the style class for a disabled CSS table CAPTION (a LABEL) element.
final protected static  intGRP_LABEL_DIS
     The define constant indicating the style class for a disabled CSS table CAPTION (a LABEL) element.
final protected static  intGRP_ROW_EVEN
     The define constant indicating the style class for the even rows.
final protected static  intGRP_ROW_ODD
     The define constant indicating the style class for the odd rows.
final protected static  intIMAGE
     The define constant indicating the style class for the IMG element.
final protected static  intIMAGE_DIS
     The define constant indicating the style class for a disabled IMG element.
final protected static  intINPUT
     The define constant indicating the style class for an INPUT element.
final protected static  intINPUT_DIS
     The define constant indicating the style class for a disabled INPUT element.
final protected static  intLABEL
     The define constant indicating the style class for the LABEL element.
final protected static  intLABEL_DIS
     The define constant indicating the style class for a disabled LABEL element.
final protected static  intLABEL_LVL1
     The define constant indicating the label level style class for a LABEL element.
final protected static  intLABEL_LVL2
     The define constant indicating the label level style class for a LABEL element.
final protected static  intLABEL_LVL3
     The define constant indicating the label level style class for a LABEL element.
final protected static  intLABEL_LVL_DEF
     The define constant indicating the default label level style class for a LABEL element.

Constructor Summary
public  SelectorGroupRenderer()
    

Method Summary
public  voiddecode(FacesContext context, UIComponent component)
     Decode the RadioButtonGroup or CheckboxGroup selection.
public  voidencodeChildren(FacesContext context, UIComponent component)
     Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered.
protected  Option[]getItems(Selector selector)
    
final protected  StringgetRowColumnStyle(Theme theme, int styleCode)
     Pass on the style request from the com.sun.rave.web.ui.renderer.RowColumnRenderer to the SelectorGroupRenderer subclass.
abstract protected  UIComponentgetSelectorComponent(FacesContext context, UIComponent component, Theme theme, String id, Option option)
     Implemented in the subclass to return the UIComponent for a control in the group.
protected  StringgetStyle(Theme theme, int styleCode, int styleLevelCode)
    
abstract protected  String[]getStyles()
     Return style constants for the controls in the group.
protected  voidrenderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer)
     Called by the RowColumnRenderer superclass when the group label should be rendered.
protected  voidrenderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN)
    
protected  voidrenderEmptyCell(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer)
     Called from the renderCellContent method implemented in the sublclass when there are no more controls to render.
protected  voidrenderSelectorGroup(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int columns)
     Called from the renderEnd method of the subclass to begin rendering the component.
protected  voidtransferEventAttributes(Selector group, RbCbSelector rbcb)
    

Field Detail
GRP
final protected static int GRP(Code)
The define constant indicating the style class for the top level TABLE element.



GRP_CAPTION
final protected static int GRP_CAPTION(Code)
The define constant indicating the style class for the CSS table CAPTION (a CELL element).



GRP_CELL_EVEN
final protected static int GRP_CELL_EVEN(Code)
The define constant indicating the style class for the even cells.



GRP_CELL_ODD
final protected static int GRP_CELL_ODD(Code)
The define constant indicating the style class for the odd cells.



GRP_LABEL
final protected static int GRP_LABEL(Code)
The define constant indicating the style class for a disabled CSS table CAPTION (a LABEL) element.



GRP_LABEL_DIS
final protected static int GRP_LABEL_DIS(Code)
The define constant indicating the style class for a disabled CSS table CAPTION (a LABEL) element.



GRP_ROW_EVEN
final protected static int GRP_ROW_EVEN(Code)
The define constant indicating the style class for the even rows.



GRP_ROW_ODD
final protected static int GRP_ROW_ODD(Code)
The define constant indicating the style class for the odd rows.



IMAGE
final protected static int IMAGE(Code)
The define constant indicating the style class for the IMG element.



IMAGE_DIS
final protected static int IMAGE_DIS(Code)
The define constant indicating the style class for a disabled IMG element.



INPUT
final protected static int INPUT(Code)
The define constant indicating the style class for an INPUT element.



INPUT_DIS
final protected static int INPUT_DIS(Code)
The define constant indicating the style class for a disabled INPUT element.



LABEL
final protected static int LABEL(Code)
The define constant indicating the style class for the LABEL element.



LABEL_DIS
final protected static int LABEL_DIS(Code)
The define constant indicating the style class for a disabled LABEL element.



LABEL_LVL1
final protected static int LABEL_LVL1(Code)
The define constant indicating the label level style class for a LABEL element.



LABEL_LVL2
final protected static int LABEL_LVL2(Code)
The define constant indicating the label level style class for a LABEL element.



LABEL_LVL3
final protected static int LABEL_LVL3(Code)
The define constant indicating the label level style class for a LABEL element.



LABEL_LVL_DEF
final protected static int LABEL_LVL_DEF(Code)
The define constant indicating the default label level style class for a LABEL element.




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




Method Detail
decode
public void decode(FacesContext context, UIComponent component)(Code)
Decode the RadioButtonGroup or CheckboxGroup selection. If the component clientId is found as a request parameter, which is rendered as the value of the name attribute of the INPUT elements of type radio or checkbox, the String[] value is assigned as the submitted value on the component.

In the case of a CheckboxGroup component the array may have zero or more elements. In the case of RadioButtonGroup there is always only one element.

If the component clientId is not found as a request parameter a String[0] is assigned as the submitted value, meaning that this is a CheckboxGroup component with no check boxes selected.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - The RadioButtonGroup component to be decoded.




encodeChildren
public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)
Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property of this component is true.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - UIComponent to be decoded.



getItems
protected Option[] getItems(Selector selector)(Code)



getRowColumnStyle
final protected String getRowColumnStyle(Theme theme, int styleCode)(Code)
Pass on the style request from the com.sun.rave.web.ui.renderer.RowColumnRenderer to the SelectorGroupRenderer subclass.
Parameters:
  theme - Theme for the request we are processing.
Parameters:
  styleCode - the desired style class constant



getSelectorComponent
abstract protected UIComponent getSelectorComponent(FacesContext context, UIComponent component, Theme theme, String id, Option option)(Code)
Implemented in the subclass to return the UIComponent for a control in the group.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - The RadioButtonGroup component to be decoded.
Parameters:
  theme - Theme for the request we are processing.
Parameters:
  id - the new component's id.
Parameters:
  option - the Option being rendered.



getStyle
protected String getStyle(Theme theme, int styleCode, int styleLevelCode)(Code)
Return the style class name and level for the structural element indicated by styleCode
Parameters:
  styleCode - identifies the style class for the element aboutto be rendered.
Parameters:
  styleLevelCode - identifies the style class level for the element about to be rendered.



getStyles
abstract protected String[] getStyles()(Code)
Return style constants for the controls in the group. The getStyles method is implemented by subclasses to return a String[] of style constants as defined in ThemeStyles in an order defined by the constants in this class.



renderCaption
protected void renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code)
Called by the RowColumnRenderer superclass when the group label should be rendered.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - UIComponent to be decoded.
Parameters:
  theme - Theme for the request we are processing.
Parameters:
  writer - ResponseWriter to which the HTML willbe output



renderCellContent
protected void renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) throws IOException(Code)



renderEmptyCell
protected void renderEmptyCell(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code)
Called from the renderCellContent method implemented in the sublclass when there are no more controls to render.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - UIComponent to be decoded.
Parameters:
  theme - Theme for the request we are processing.
Parameters:
  writer - ResponseWriter to which the HTML willbe output



renderSelectorGroup
protected void renderSelectorGroup(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int columns) throws IOException(Code)
Called from the renderEnd method of the subclass to begin rendering the component.
Parameters:
  context - FacesContext for the request we are processing.
Parameters:
  component - UIComponent to be decoded.
Parameters:
  writer - ResponseWriter to which the HTML willbe output
Parameters:
  columns - the number of columns to use when rendering the controls



transferEventAttributes
protected void transferEventAttributes(Selector group, RbCbSelector rbcb)(Code)



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.