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: 472792 $ $Date: 2006-11-09 07:34:47 +0100 (Do, 09 Nov 2006) $
Author:
Manfred Geiler (latest modification by $Author: grantsmith $)

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  java.lang.String getItemStringValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, javax.faces.convert.Converter converter, java.lang.Object itemValue)
           
protected  java.lang.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  void renderCheckboxGroup(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.model.SelectItemGroup selectItemGroup, boolean useSubmittedValues, java.util.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, java.util.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, java.util.Set lookupSet, javax.faces.context.ResponseWriter writer, int totalRows, int rowNum)
           
 
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 java.io.IOException
Overrides:
encodeEnd in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
Throws:
java.io.IOException

renderCheckboxList

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

renderCheckboxListHorizontally

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

renderRowForHorizontal

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

renderCheckboxListVertically

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

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)
                                  throws java.io.IOException
Overrides:
renderGroupOrItemCheckbox in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlCheckboxRendererBase
Throws:
java.io.IOException

renderLabelClassIfNecessary

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

renderCheckboxGroup

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

getLayout

protected java.lang.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

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 java.lang.String getItemStringValue(javax.faces.context.FacesContext facesContext,
                                              javax.faces.component.UISelectMany selectMany,
                                              javax.faces.convert.Converter converter,
                                              java.lang.Object itemValue)

getConverter

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


Copyright © 2011. All Rights Reserved.