org.apache.myfaces.renderkit.html
Class HtmlRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.renderkit.html.HtmlRenderer
Direct Known Subclasses:
HtmlButtonRendererBase, HtmlCheckboxRendererBase, HtmlFormRendererBase, HtmlGridRendererBase, HtmlGroupRendererBase, HtmlImageRendererBase, HtmlLinkRendererBase, HtmlListboxRendererBase, HtmlMenuRendererBase, HtmlMessageRendererBase, HtmlRadioRendererBase, HtmlSecretRendererBase, HtmlTableRendererBase, HtmlTextareaRendererBase, HtmlTextRendererBase

public abstract class HtmlRenderer
extends javax.faces.render.Renderer

Version:
$Revision: 376993 $ $Date: 2006-02-11 15:34:59 +0000 (Sat, 11 Feb 2006) $
Author:
Manfred Geiler (latest modification by $Author: matzew $)

Constructor Summary
HtmlRenderer()
           
 
Method Summary
protected  java.lang.String getActionUrl(javax.faces.context.FacesContext facesContext)
           
 int getChildCount(javax.faces.component.UIComponent component)
          Return the number of children of the specified component.
 java.util.List getChildren(javax.faces.component.UIComponent component)
          Return the list of children of the specified component.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlRenderer

public HtmlRenderer()
Method Detail

getChildren

public java.util.List getChildren(javax.faces.component.UIComponent component)
Return the list of children of the specified component.

This default implementation simply returns component.getChildren(). However this method should always be used in order to allow renderer subclasses to override it and provide filtered or reordered views of the component children to rendering methods defined in their ancestor classes.

Any method that overrides this to "hide" child components should also override the getChildCount method.

Returns:
a list of UIComponent objects.

getChildCount

public int getChildCount(javax.faces.component.UIComponent component)
Return the number of children of the specified component.

See getChildren(UIComponent) for more information.


getActionUrl

protected java.lang.String getActionUrl(javax.faces.context.FacesContext facesContext)
Parameters:
facesContext -
Returns:
String A String representing the action URL


Copyright 2006 Apache Software Foundation. All Rights Reserved.