Java Doc for DomBasicRenderer.java in  » J2EE » ICEfaces-1.6.1 » com » icesoft » faces » renderkit » dom_html_basic » 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 » J2EE » ICEfaces 1.6.1 » com.icesoft.faces.renderkit.dom_html_basic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer

All known Subclasses:   com.icesoft.faces.component.menubar.MenuItemsRenderer,  com.icesoft.faces.renderkit.dom_html_basic.OutputLinkRenderer,  com.icesoft.faces.component.panelborder.PanelBorderRenderer,  com.icesoft.faces.component.menubar.MenuItemRendererBase,  com.icesoft.faces.component.panelseries.PanelSeriesRenderer,  com.icesoft.faces.component.panelpositioned.PanelPositionedRenderer,  com.icesoft.faces.renderkit.dom_html_basic.OutputMessageRenderer,  com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer,  com.icesoft.faces.component.menubar.MenuBarRenderer,  com.icesoft.faces.renderkit.dom_html_basic.LinkRenderer,  com.icesoft.faces.component.slider.SliderRenderer,  com.icesoft.faces.renderkit.dom_html_basic.MessagesRenderer,  com.icesoft.faces.component.outputdeclaration.OutputDeclarationRenderer,  com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer,  com.icesoft.faces.component.outputconnectionstatus.OutputConnectionStatusRenderer,  com.icesoft.faces.component.style.OutputStyleRenderer,  com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer,  com.icesoft.faces.component.tree.TreeNodeRenderer,  com.icesoft.faces.component.paneltabset.PanelTabSetRenderer,  com.icesoft.faces.renderkit.dom_html_basic.FormRenderer,  com.icesoft.faces.component.outputchart.OutputChartRenderer,  com.icesoft.faces.component.ext.renderkit.RowSelectorRenderer,  com.icesoft.faces.component.effect.ApplyEffectRenderer,  com.icesoft.faces.renderkit.dom_html_basic.ImageRenderer,  com.icesoft.faces.renderkit.dom_html_basic.ButtonRenderer,  com.icesoft.faces.renderkit.dom_html_basic.MessageRenderer,  com.icesoft.faces.renderkit.dom_html_basic.TableRenderer,  com.icesoft.faces.component.panelcollapsible.PanelCollapsibleRenderer,  com.icesoft.faces.component.datapaginator.DataPaginatorRenderer,  com.icesoft.faces.component.tree.TreeRenderer,  com.icesoft.faces.component.panelstack.PanelStackRenderer,  com.icesoft.faces.renderkit.dom_html_basic.GridRenderer,
DomBasicRenderer
abstract public class DomBasicRenderer extends Renderer (Code)


Field Summary
final public  StringICESUBMIT
    
final public  StringICESUBMITPARTIAL
    
final public static  StringUIFORM
    
final public static  StringWEB_UIFORM
    
final public static  StringWEB_UIJSFFORM
    


Method Summary
public  voiddecode(FacesContext facesContext, UIComponent uiComponent)
    
public  voidencodeEnd(FacesContext facesContext, UIComponent uiComponent)
     Delegate rendering to the renderEnd(..) method after validating parameters and before maintaining the cursor position.
public static  voidencodeParentAndChildren(FacesContext facesContext, UIComponent parent)
     Recursively render the parent UIComponent instance and its children.
 StringfabricateClientId(UIComponent uiComponent, FacesContext facesContext, String uiComponentId)
     This method fabricates the clientId of a component.
public static  UIComponentfindForComponent(FacesContext facesContext, UIComponent uiComponent)
     Find the UIComponent whose id is given by the for attribute of the UIComponent parameter.
public static  UIComponentfindForm(UIComponent uiComponent)
    

Given a UIComponent instance, recursively examine the heirarchy of parent NamingContainers until a Form is found.

public static  UIComponentfindNamingContainer(UIComponent uiComponent)
    

Given a UIComponent instance, recursively examine the heirarchy of parent UIComponents until the first NamingContainer is found.

 StringformatComponentValue(FacesContext facesContext, UIComponent uiComponent, Object currentValue)
     If the parameter UIComponent instance is a ValueHolder, return the currentValue parameter.
protected  String[]getColumnStyleClasses(UIComponent uiComponent)
    
 ConvertergetConverterForClass(Class converterClass)
    
public static  String[]getExcludesArray(Set excludes)
     Retrieve the array of excluded attributes.
protected static  UIComponentgetFacetByName(UIComponent uiComponent, String name)
    
static  MapgetParameterMap(UIComponent uiComponent)
    
public static  StringgetResourceURL(FacesContext context, String path)
    
public  String[]getRowStyleClasses(UIComponent uiComponent)
     This method, given a component, will return an array of the component's row classes.
Parameters:
  uiComponent - a String array of row classes defined in a tag attribute ordefined by default, depending on the component.
static  String[]getStyleAndStyleClass(UIComponent uiComponent, FacesMessage facesMessage)
    
public  String[]getStyleClasses(UIComponent uiComponent, String styleClassAttributeName)
    
 String[]getSummaryAndDetail(FacesMessage facesMessage)
    
 booleangetToolTipAttribute(UIComponent uiComponent)
    
 StringgetValue(FacesContext facesContext, UIComponent uiComponent)
     Get the submitted value from the UIComponent argument.
 ObjectgetValue(UIComponent uiComponent)
    
static  booleanidNotNull(UIComponent uiComponent)
    
public static  booleanisStatic(UIComponent uiComponent)
     A component is static if it is disabled or readonly.
public static  voidrenderAttribute(UIComponent uiComponent, Element targetElement, String attrNameInComponent, String attrNameInDom)
    
protected  voidrenderEnd(FacesContext facesContext, UIComponent uiComponent, String currentValue)
     The common infrastructure of parameter validation and cursor management will be provided by the encodeEnd method and rendering is delegated to this method.
public static  voidsetRootElementId(FacesContext facesContext, Element rootElement, UIComponent uiComponent)
     Set the id of the root element of the DOMContext associated with the UIComponent parameter.
public  voidsetSubmittedValue(UIComponent uiComponent, Object value)
    
public  voidvalidateParameters(FacesContext facesContext, UIComponent uiComponent, Class validComponentType)
     Validates that the facesContext is not null, the uiComponent is not null, and that uiComponent is assignment-compatible with the validComponentType.

Field Detail
ICESUBMIT
final public String ICESUBMIT(Code)



ICESUBMITPARTIAL
final public String ICESUBMITPARTIAL(Code)



UIFORM
final public static String UIFORM(Code)



WEB_UIFORM
final public static String WEB_UIFORM(Code)



WEB_UIJSFFORM
final public static String WEB_UIJSFFORM(Code)





Method Detail
decode
public void decode(FacesContext facesContext, UIComponent uiComponent)(Code)



encodeEnd
public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException(Code)
Delegate rendering to the renderEnd(..) method after validating parameters and before maintaining the cursor position. The renderEnd method should be overridden by subclasses of this class so that the common infrastructure of parameter validation and cursor maintenance are provided here.



encodeParentAndChildren
public static void encodeParentAndChildren(FacesContext facesContext, UIComponent parent) throws IOException(Code)
Recursively render the parent UIComponent instance and its children.
Parameters:
  facesContext -
Parameters:
  parent -
throws:
  IOException -



fabricateClientId
String fabricateClientId(UIComponent uiComponent, FacesContext facesContext, String uiComponentId)(Code)
This method fabricates the clientId of a component. It should be used only when the clientId of the uiComponent is required in advance of the component existing. The uiComponentId may be provided by, for example, a label element with a 'for' attribute defined. The for attribute will be the id of the component that will eventually be created.

Determine the id of the nearest parental naming container and prepend it to the id of the component's id.
Parameters:
  uiComponent -
Parameters:
  facesContext -
Parameters:
  uiComponentId -




findForComponent
public static UIComponent findForComponent(FacesContext facesContext, UIComponent uiComponent)(Code)
Find the UIComponent whose id is given by the for attribute of the UIComponent parameter.
Parameters:
  facesContext -
Parameters:
  uiComponent - the UIComponent associated with the component id indicated by thevalue of the for attribute of the UIComponent parameter.



findForm
public static UIComponent findForm(UIComponent uiComponent)(Code)

Given a UIComponent instance, recursively examine the heirarchy of parent NamingContainers until a Form is found.


Parameters:
  uiComponent - the UIComponent instance form as the UIComponent instance



findNamingContainer
public static UIComponent findNamingContainer(UIComponent uiComponent)(Code)

Given a UIComponent instance, recursively examine the heirarchy of parent UIComponents until the first NamingContainer is found.


Parameters:
  uiComponent - the nearest parent NamingContainer or null if none exist.



formatComponentValue
String formatComponentValue(FacesContext facesContext, UIComponent uiComponent, Object currentValue) throws ConverterException(Code)
If the parameter UIComponent instance is a ValueHolder, return the currentValue parameter. If there is a converter registered with the component then use the converter to obtain a String value.
Parameters:
  facesContext -
Parameters:
  uiComponent -
Parameters:
  currentValue -
throws:
  ConverterException -



getColumnStyleClasses
protected String[] getColumnStyleClasses(UIComponent uiComponent)(Code)



getConverterForClass
Converter getConverterForClass(Class converterClass)(Code)

Parameters:
  converterClass -



getExcludesArray
public static String[] getExcludesArray(Set excludes)(Code)
Retrieve the array of excluded attributes. This array should be constructed in the renderer class and then passed in to the PassThruAttributeRenderer. a String array of excluded attributes.



getFacetByName
protected static UIComponent getFacetByName(UIComponent uiComponent, String name)(Code)



getParameterMap
static Map getParameterMap(UIComponent uiComponent)(Code)
Due to the behaviour of the UIParameter class, the names in the name-value pairs of the Map returned by this method are guaranteed to be Strings
Parameters:
  uiComponent - Map the parameterMap



getResourceURL
public static String getResourceURL(FacesContext context, String path)(Code)



getRowStyleClasses
public String[] getRowStyleClasses(UIComponent uiComponent)(Code)
This method, given a component, will return an array of the component's row classes.
Parameters:
  uiComponent - a String array of row classes defined in a tag attribute ordefined by default, depending on the component. Can be azero-length array



getStyleAndStyleClass
static String[] getStyleAndStyleClass(UIComponent uiComponent, FacesMessage facesMessage)(Code)
Get the style and style class associated with the severity of the FacesMessage
Parameters:
  uiComponent -
Parameters:
  facesMessage -



getStyleClasses
public String[] getStyleClasses(UIComponent uiComponent, String styleClassAttributeName)(Code)



getSummaryAndDetail
String[] getSummaryAndDetail(FacesMessage facesMessage)(Code)

Parameters:
  facesMessage -



getToolTipAttribute
boolean getToolTipAttribute(UIComponent uiComponent)(Code)

Parameters:
  uiComponent -



getValue
String getValue(FacesContext facesContext, UIComponent uiComponent)(Code)
Get the submitted value from the UIComponent argument. If the UIComponent is not an instance of UIInput, or its getSubmittedValue() method returns null or a non-String value, then an attempt is made to obtain the value from the UIComponent's renderer. Conversion is performed on a value obtained from the renderer.
Parameters:
  facesContext -
Parameters:
  uiComponent - String the submitted value



getValue
Object getValue(UIComponent uiComponent)(Code)



idNotNull
static boolean idNotNull(UIComponent uiComponent)(Code)



isStatic
public static boolean isStatic(UIComponent uiComponent)(Code)
A component is static if it is disabled or readonly.
Parameters:
  uiComponent - true if the component is disabled or readonly



renderAttribute
public static void renderAttribute(UIComponent uiComponent, Element targetElement, String attrNameInComponent, String attrNameInDom)(Code)

Sets a non-null, non-empty-string, UIComponent property to the corresponding DOM Element


Parameters:
  uiComponent - the source of the attribute value
Parameters:
  targetElement - the DOM Element that will receive theattribute
Parameters:
  attrNameInComponent - the property name in the UIComponent object
Parameters:
  attrNameInDom - the attribute name in the DOM Element




renderEnd
protected void renderEnd(FacesContext facesContext, UIComponent uiComponent, String currentValue) throws IOException(Code)
The common infrastructure of parameter validation and cursor management will be provided by the encodeEnd method and rendering is delegated to this method. Renderers should override this method instead of encodeEnd to provide rendering at the time of execution of the encodeEnd method.
Parameters:
  facesContext -
Parameters:
  uiComponent -
Parameters:
  currentValue -
throws:
  IOException -



setRootElementId
public static void setRootElementId(FacesContext facesContext, Element rootElement, UIComponent uiComponent)(Code)
Set the id of the root element of the DOMContext associated with the UIComponent parameter.
Parameters:
  facesContext -
Parameters:
  rootElement -
Parameters:
  uiComponent -



setSubmittedValue
public void setSubmittedValue(UIComponent uiComponent, Object value)(Code)
This method should be overridden by renderers for components who subclass UIInput
Parameters:
  uiComponent -
Parameters:
  value -



validateParameters
public void validateParameters(FacesContext facesContext, UIComponent uiComponent, Class validComponentType)(Code)
Validates that the facesContext is not null, the uiComponent is not null, and that uiComponent is assignment-compatible with the validComponentType. Pass a null parameter for validComponentType to avoid any type checking.
Parameters:
  facesContext -
Parameters:
  uiComponent -
Parameters:
  validComponentType -
throws:
  NullPointerException - if either of the facesContext or theuiComponent parameters are null orif a parent form is not found when the given UIComponentis a UIInput or UICommand,IllegalArgumentException if thevalidComponentType is not null and theuiComponent is not assignable to the giventype.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.