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


com.sun.rave.web.ui.component.SelectorBase
   com.sun.rave.web.ui.component.Selector
      com.sun.rave.web.ui.component.RbCbSelectorBase
         com.sun.rave.web.ui.component.RbCbSelector

All known Subclasses:   com.sun.rave.web.ui.component.CheckboxBase,  com.sun.rave.web.ui.component.RadioButtonBase,
RbCbSelector
public class RbCbSelector extends RbCbSelectorBase (Code)
Superclass for Checkbox and RadioButton.


Field Summary
final public static  StringIMAGE_FACET
     Image facet name.
final public static  StringLABEL_FACET
     Label facet name.

Constructor Summary
public  RbCbSelector()
    

Method Summary
protected  voidaddToRequestMap(FacesContext context, String groupName)
     Implemented by subclasses in order to reflect the selection state of this component id part of a group.
protected  UIComponentcreateImageComponent()
     Create a com.sun.rave.web.ui.component.ImageComponent to represent the image for this component.
protected  UIComponentcreateLabelComponent()
     Create a com.sun.rave.web.ui.component.Label to represent the label for this component.
public  voidencodeBegin(FacesContext context)
     Encode the component.
public  ObjectgetConvertedValue(FacesContext context, Object submittedValue)
     Convert the submittedValue argument.

If there is a renderer for this component, its getConvertedValue() method is called and the value returned by that method is returned.

public  ObjectgetConvertedValue(FacesContext context, RbCbSelector component, Object submittedValue)
     Convert the submittedValue argument.

If submittedValue is not an instance of String[] or String a ConverterException is thrown.

The submittedValue indicates selected if it is String[1].length() != 0 or String.length() != 0.

If not selected and getSelectedValue() returns an instance of Boolean, Boolean.FALSE is returned.

If not selected and it's not a boolean control then an unselected value is returned appropriate for the type of the selected property.

public  UIComponentgetImageComponent()
     Returns a UIComponent that represents the image for this component.
public  UIComponentgetLabelComponent()
     Returns a UIComponent that represents the label for this component.
public  ObjectgetSelectedValue()
     Return the value of the selectedValue property.
public  booleanisChecked()
     Return true if the control is checked.

Field Detail
IMAGE_FACET
final public static String IMAGE_FACET(Code)
Image facet name.



LABEL_FACET
final public static String LABEL_FACET(Code)
Label facet name.




Constructor Detail
RbCbSelector
public RbCbSelector()(Code)




Method Detail
addToRequestMap
protected void addToRequestMap(FacesContext context, String groupName)(Code)
Implemented by subclasses in order to reflect the selection state of this component id part of a group. This method is called if the component is part of a group.
Parameters:
  context - the context for this request.
Parameters:
  groupName - the value of the name property.



createImageComponent
protected UIComponent createImageComponent()(Code)
Create a com.sun.rave.web.ui.component.ImageComponent to represent the image for this component.



createLabelComponent
protected UIComponent createLabelComponent()(Code)
Create a com.sun.rave.web.ui.component.Label to represent the label for this component.



encodeBegin
public void encodeBegin(FacesContext context) throws IOException(Code)
Encode the component.

If this component is part of a group, ensure that the initial state is reflected in the request map by calling addToRequestMap.


Parameters:
  context - the context for this request.



getConvertedValue
public Object getConvertedValue(FacesContext context, Object submittedValue) throws ConverterException(Code)
Convert the submittedValue argument.

If there is a renderer for this component, its getConvertedValue() method is called and the value returned by that method is returned.

If there is no renderer, and submittedValue is not an instance of String[] or String a ConverterException is thrown.

The submittedValue indicates selected if it is String[1].length() != 0 or String.length() != 0.

If not selected and getSelectedValue() returns an instance of Boolean, Boolean.FALSE is returned.

If not selected and it's not a boolean control then an unselected value is returned appropriate for the type of the selected property. If the type of the selected property evaluates to a primitive type by virtue of a value binding the appropriate MIN_VALUE constant is returned. For example if the type is int, new Integer(Integer.MIN_VALUE) is returned.
If the type is not a primitive value "" is returned.

If the control is selected ConversionUtilities.convertValueToObject() is called to convert submittedValue.

If ConversionUtilities.convertValueToObject() returns submittedValue, the value of the getSelectedValue() property is returned, else the value returned by ConversionUtilities.convertValueToObject() is returned.


Parameters:
  context - the context of this request.
Parameters:
  submittedValue - the submitted String value of this component.



getConvertedValue
public Object getConvertedValue(FacesContext context, RbCbSelector component, Object submittedValue) throws ConverterException(Code)
Convert the submittedValue argument.

If submittedValue is not an instance of String[] or String a ConverterException is thrown.

The submittedValue indicates selected if it is String[1].length() != 0 or String.length() != 0.

If not selected and getSelectedValue() returns an instance of Boolean, Boolean.FALSE is returned.

If not selected and it's not a boolean control then an unselected value is returned appropriate for the type of the selected property. If the type of the selected property evaluates to a primitive type by virtue of a value binding the appropriate MIN_VALUE constant is returned. For example if the type is int, new Integer(Integer.MIN_VALUE) is returned.
If the type is not a primitive value "" is returned.

If the control is selected ConversionUtilities.convertValueToObject() is called to convert submittedValue.

If ConversionUtilities.convertValueToObject() returns submittedValue, the value of the getSelectedValue() property is returned, else the value returned by ConversionUtilities.convertValueToObject() is returned.


Parameters:
  context - the context of this request.
Parameters:
  component - an RbCbSelector instance.
Parameters:
  submittedValue - the submitted String value of this component.



getImageComponent
public UIComponent getImageComponent()(Code)
Returns a UIComponent that represents the image for this component.

If an "image" facet exists, the UIComponent associated with that facet is returned.
If an "image" facet does not exist and the imageURL property is not null, createImageComponent() is called to create the image component.




getLabelComponent
public UIComponent getLabelComponent()(Code)
Returns a UIComponent that represents the label for this component.

If a "label" facet exists, the UIComponent associated with that facet is returned.
If a "label" facet does not exist and the label property is not null, createLabelComponent is called to create the label component.




getSelectedValue
public Object getSelectedValue()(Code)
Return the value of the selectedValue property. If selectedValue is null, then a Boolean true instance is returned and the control will behave as a boolean control.



isChecked
public boolean isChecked()(Code)
Return true if the control is checked. A control is checked when the selectedValue property is equal to the selected property.



Methods inherited from com.sun.rave.web.ui.component.RbCbSelectorBase
public String getFamily()(Code)(Java Doc)
public String getImageURL()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Object getSelected()(Code)(Java Doc)
public Object getSelectedValue()(Code)(Java Doc)
public ValueBinding getValueBinding(String name)(Code)(Java Doc)
public void restoreState(FacesContext _context, Object _state)(Code)(Java Doc)
public Object saveState(FacesContext _context)(Code)(Java Doc)
public void setImageURL(String imageURL)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setSelected(Object selected)(Code)(Java Doc)
public void setSelectedValue(Object selectedValue)(Code)(Java Doc)
public void setValueBinding(String name, ValueBinding binding)(Code)(Java Doc)

Fields inherited from com.sun.rave.web.ui.component.Selector
protected ValueTypeEvaluator valueTypeEvaluator(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.component.Selector
protected boolean compareValues(Object previous, Object value)(Code)(Java Doc)
public Object getConvertedValue(FacesContext context, Object submittedValue) throws ConverterException(Code)(Java Doc)
public int getLabelLevel()(Code)(Java Doc)
public boolean getRendersChildren()(Code)(Java Doc)
protected String getValueAsReadOnly(FacesContext context)(Code)(Java Doc)
public boolean isMultiple()(Code)(Java Doc)
static void log(String s, Object o)(Code)(Java Doc)
void log(String s)(Code)(Java Doc)
public void setMultiple(boolean multiple)(Code)(Java Doc)
public void setSelected(Object selected)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.component.SelectorBase
public String getFamily()(Code)(Java Doc)
public Object getItems()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public int getLabelLevel()(Code)(Java Doc)
public String getOnBlur()(Code)(Java Doc)
public String getOnChange()(Code)(Java Doc)
public String getOnClick()(Code)(Java Doc)
public String getOnDblClick()(Code)(Java Doc)
public String getOnFocus()(Code)(Java Doc)
public String getOnKeyDown()(Code)(Java Doc)
public String getOnKeyPress()(Code)(Java Doc)
public String getOnKeyUp()(Code)(Java Doc)
public String getOnMouseDown()(Code)(Java Doc)
public String getOnMouseMove()(Code)(Java Doc)
public String getOnMouseOut()(Code)(Java Doc)
public String getOnMouseOver()(Code)(Java Doc)
public String getOnMouseUp()(Code)(Java Doc)
public String getOnSelect()(Code)(Java Doc)
public Object getSelected()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getStyleClass()(Code)(Java Doc)
public int getTabIndex()(Code)(Java Doc)
public String getToolTip()(Code)(Java Doc)
public ValueBinding getValueBinding(String name)(Code)(Java Doc)
public boolean isDisabled()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void restoreState(FacesContext _context, Object _state)(Code)(Java Doc)
public Object saveState(FacesContext _context)(Code)(Java Doc)
public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setItems(Object items)(Code)(Java Doc)
public void setLabel(String label)(Code)(Java Doc)
public void setLabelLevel(int labelLevel)(Code)(Java Doc)
public void setOnBlur(String onBlur)(Code)(Java Doc)
public void setOnChange(String onChange)(Code)(Java Doc)
public void setOnClick(String onClick)(Code)(Java Doc)
public void setOnDblClick(String onDblClick)(Code)(Java Doc)
public void setOnFocus(String onFocus)(Code)(Java Doc)
public void setOnKeyDown(String onKeyDown)(Code)(Java Doc)
public void setOnKeyPress(String onKeyPress)(Code)(Java Doc)
public void setOnKeyUp(String onKeyUp)(Code)(Java Doc)
public void setOnMouseDown(String onMouseDown)(Code)(Java Doc)
public void setOnMouseMove(String onMouseMove)(Code)(Java Doc)
public void setOnMouseOut(String onMouseOut)(Code)(Java Doc)
public void setOnMouseOver(String onMouseOver)(Code)(Java Doc)
public void setOnMouseUp(String onMouseUp)(Code)(Java Doc)
public void setOnSelect(String onSelect)(Code)(Java Doc)
public void setReadOnly(boolean readOnly)(Code)(Java Doc)
public void setSelected(Object selected)(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public void setStyleClass(String styleClass)(Code)(Java Doc)
public void setTabIndex(int tabIndex)(Code)(Java Doc)
public void setToolTip(String toolTip)(Code)(Java Doc)
public void setValueBinding(String name, ValueBinding binding)(Code)(Java Doc)
public void setVisible(boolean visible)(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.