org.apache.myfaces.renderkit.html.ext
Class HtmlCheckboxRenderer

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
              extended by org.apache.myfaces.renderkit.html.ext.HtmlCheckboxRenderer

public class HtmlCheckboxRenderer
extends org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase

Version:
$Revision: 784968 $ $Date: 2009-06-15 15:39:15 -0500 (Mon, 15 Jun 2009) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Constructor Summary
HtmlCheckboxRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany)
           
protected  String getItemStringValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, javax.faces.convert.Converter converter, Object itemValue)
           
protected  String getLayout(javax.faces.component.UISelectMany selectMany)
          Determines the layout setting.
protected  int getLayoutWidth(javax.faces.component.UISelectMany selectMany)
          Gets the layout width.
protected  boolean isDisabled(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected  String renderCheckbox(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, String value, String label, boolean disabled, boolean checked, boolean renderId, int itemNum)
          Renders the input item
protected  void renderCheckboxGroup(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.model.SelectItemGroup selectItemGroup, boolean useSubmittedValues, Set lookupSet, javax.faces.convert.Converter converter, boolean pageDirectionLayout)
           
 void renderCheckboxList(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany)
           
protected  void renderCheckboxListHorizontally(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, javax.faces.convert.Converter converter)
           
protected  void renderCheckboxListVertically(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, javax.faces.convert.Converter converter)
           
protected  void renderGroupOrItemCheckbox(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.model.SelectItem selectItem, boolean useSubmittedValues, Set lookupSet, javax.faces.convert.Converter converter, boolean pageDirectionLayout)
           
protected  void renderLabelClassIfNecessary(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, boolean disabled)
           
protected  void renderRowForHorizontal(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, javax.faces.convert.Converter converter, Set lookupSet, javax.faces.context.ResponseWriter writer, int totalRows, int rowNum)
           
protected  void renderSingleCheckbox(javax.faces.context.FacesContext facesContext, org.apache.myfaces.custom.checkbox.HtmlCheckbox checkbox)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
getConvertedValue, renderCheckbox
 
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

HtmlCheckboxRenderer

public HtmlCheckboxRenderer()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws IOException
Overrides:
encodeEnd in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
Throws:
IOException

renderCheckboxList

public void renderCheckboxList(javax.faces.context.FacesContext facesContext,
                               javax.faces.component.UISelectMany selectMany)
                        throws IOException
Overrides:
renderCheckboxList in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
Throws:
IOException

renderCheckboxListHorizontally

protected void renderCheckboxListHorizontally(javax.faces.context.FacesContext facesContext,
                                              javax.faces.component.UISelectMany selectMany,
                                              javax.faces.convert.Converter converter)
                                       throws IOException
Throws:
IOException

renderRowForHorizontal

protected void renderRowForHorizontal(javax.faces.context.FacesContext facesContext,
                                      javax.faces.component.UISelectMany selectMany,
                                      javax.faces.convert.Converter converter,
                                      Set lookupSet,
                                      javax.faces.context.ResponseWriter writer,
                                      int totalRows,
                                      int rowNum)
                               throws IOException
Throws:
IOException

renderCheckboxListVertically

protected void renderCheckboxListVertically(javax.faces.context.FacesContext facesContext,
                                            javax.faces.component.UISelectMany selectMany,
                                            javax.faces.convert.Converter converter)
                                     throws IOException
Throws:
IOException

renderGroupOrItemCheckbox

protected void renderGroupOrItemCheckbox(javax.faces.context.FacesContext facesContext,
                                         javax.faces.component.UIComponent uiComponent,
                                         javax.faces.model.SelectItem selectItem,
                                         boolean useSubmittedValues,
                                         Set lookupSet,
                                         javax.faces.convert.Converter converter,
                                         boolean pageDirectionLayout)
                                  throws IOException
Overrides:
renderGroupOrItemCheckbox in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
Throws:
IOException

renderLabelClassIfNecessary

protected void renderLabelClassIfNecessary(javax.faces.context.FacesContext facesContext,
                                           javax.faces.component.UISelectMany selectMany,
                                           boolean disabled)
                                    throws IOException
Throws:
IOException

renderCheckboxGroup

protected void renderCheckboxGroup(javax.faces.context.FacesContext facesContext,
                                   javax.faces.component.UIComponent uiComponent,
                                   javax.faces.model.SelectItemGroup selectItemGroup,
                                   boolean useSubmittedValues,
                                   Set lookupSet,
                                   javax.faces.convert.Converter converter,
                                   boolean pageDirectionLayout)
                            throws IOException
Throws:
IOException

getLayout

protected String getLayout(javax.faces.component.UISelectMany selectMany)
Determines the layout setting. Defaults to lineDirection if not specified.

Overrides:
getLayout in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
Parameters:
selectMany - the component
Returns:
the layout

getLayoutWidth

protected int getLayoutWidth(javax.faces.component.UISelectMany selectMany)
Gets the layout width. Returns the default layout width of 1 if the layout width is not set or is less than 1.

Parameters:
selectMany - the component
Returns:
the layout width

renderSingleCheckbox

protected void renderSingleCheckbox(javax.faces.context.FacesContext facesContext,
                                    org.apache.myfaces.custom.checkbox.HtmlCheckbox checkbox)
                             throws IOException
Throws:
IOException

renderCheckbox

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

Returns:
the 'id' value of the rendered element
Throws:
IOException

isDisabled

protected boolean isDisabled(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.UIComponent uiComponent)
Overrides:
isDisabled in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent uiComponent)
Overrides:
decode in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase

getItemStringValue

protected String getItemStringValue(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UISelectMany selectMany,
                                    javax.faces.convert.Converter converter,
                                    Object itemValue)

getConverter

protected javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext facesContext,
                                                     javax.faces.component.UISelectMany selectMany)


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