org.apache.myfaces.shared_tomahawk.renderkit.html
Class HtmlCheckboxRendererBase

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
Direct Known Subclasses:
HtmlCheckboxRenderer, HtmlTreeCheckboxRenderer

public class HtmlCheckboxRendererBase
extends HtmlRenderer

Version:
$Revision: 684924 $ $Date: 2008-08-11 15:59:26 -0500 (Mon, 11 Aug 2008) $
Author:
Thomas Spiegl (latest modification by $Author: lu4242 $), Anton Koinov

Constructor Summary
HtmlCheckboxRendererBase()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.Object submittedValue)
           
protected  java.lang.String getLayout(javax.faces.component.UISelectMany selectMany)
           
protected  boolean isDisabled(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
protected  java.lang.String renderCheckbox(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String value, boolean disabled, boolean checked, boolean renderId, java.lang.Integer itemNum)
          Renders the input item
protected  void renderCheckbox(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String value, java.lang.String label, boolean disabled, boolean checked, boolean renderId)
          Deprecated. 
 void renderCheckboxList(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany)
           
protected  void renderGroupOrItemCheckbox(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.model.SelectItem selectItem, boolean useSubmittedValues, java.util.Set lookupSet, javax.faces.convert.Converter converter, boolean pageDirectionLayout, java.lang.Integer itemNum)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, encodeChildren, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlCheckboxRendererBase

public HtmlCheckboxRendererBase()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
java.io.IOException

renderCheckboxList

public void renderCheckboxList(javax.faces.context.FacesContext facesContext,
                               javax.faces.component.UISelectMany selectMany)
                        throws java.io.IOException
Throws:
java.io.IOException

getLayout

protected java.lang.String getLayout(javax.faces.component.UISelectMany selectMany)

renderGroupOrItemCheckbox

protected void renderGroupOrItemCheckbox(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent uiComponent,
                                         javax.faces.model.SelectItem selectItem,
                                         boolean useSubmittedValues,
                                         java.util.Set lookupSet,
                                         javax.faces.convert.Converter converter,
                                         boolean pageDirectionLayout,
                                         java.lang.Integer itemNum)
                                  throws java.io.IOException
Throws:
java.io.IOException

renderCheckbox

@Deprecated
protected void renderCheckbox(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent uiComponent,
                                         java.lang.String value,
                                         java.lang.String label,
                                         boolean disabled,
                                         boolean checked,
                                         boolean renderId)
                       throws java.io.IOException
Deprecated. 

Throws:
java.io.IOException

renderCheckbox

protected java.lang.String renderCheckbox(javax.faces.context.FacesContext facesContext,
                                          javax.faces.component.UIComponent uiComponent,
                                          java.lang.String value,
                                          boolean disabled,
                                          boolean checked,
                                          boolean renderId,
                                          java.lang.Integer itemNum)
                                   throws java.io.IOException
Renders the input item

Returns:
the 'id' value of the rendered element
Throws:
java.io.IOException

isDisabled

protected boolean isDisabled(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.UIComponent component)

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext facesContext,
                                          javax.faces.component.UIComponent component,
                                          java.lang.Object submittedValue)
                                   throws javax.faces.convert.ConverterException
Overrides:
getConvertedValue in class javax.faces.render.Renderer
Throws:
javax.faces.convert.ConverterException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.