org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class SimpleSelectOneRadioRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.trinidad.render.CoreRenderer
          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
              extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
                      extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
                          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
                              extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer
                                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRadioRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer

public class SimpleSelectOneRadioRenderer
extends SimpleSelectOneRenderer


Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
TRANSPARENT_GIF
 
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
CHAR_UNDEFINED, NO_CHILD_INDEX
 
Constructor Summary
SimpleSelectOneRadioRenderer()
           
SimpleSelectOneRadioRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void encodeElementContent(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean, java.util.List<javax.faces.model.SelectItem> selectItems, int selectedIndex, javax.faces.convert.Converter converter, boolean valuePassThru)
           
protected  boolean encodeSelectItem(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, javax.faces.model.SelectItem item, javax.faces.convert.Converter converter, boolean valuePassThru, java.lang.Object accessKey, int index, boolean isSelected, boolean isDisabled, boolean renderBreak, java.lang.String itemOnclick)
           
protected  void encodeSelectItems(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean, java.util.List<javax.faces.model.SelectItem> selectItems, int selectedIndex, javax.faces.convert.Converter converter, boolean valuePassThru)
           
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  java.lang.Object getAccessKey(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getContentStyleClass(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getItemOnclick(org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Get the onclick for the individual radio buttons.
protected  java.lang.String getLayout(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getOnclick(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Disable rendering "onclick" on the parent; it needs to go on the individual radio buttons
protected  java.lang.String getRootStyleClass(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getUnselectedLabel(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean isHiddenLabelRequired(org.apache.myfaces.trinidad.context.RenderingContext rc)
           
protected  void renderFormEventHandlers(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Disable rendering the form event handlers on the parent.
protected  void renderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the client ID as both an "id" and a "name"
protected  void renderItemFormEventHandlers(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Render the per-item event handlers
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer
encodeAllAsElement, encodeOption, getAutoSubmitScript, getConvertedValue, getItemValue, getRequiredMessageKey, getSelectItems, getSelectItems, getSubmittedValue, getValuePassThru, renderNonElementContent
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
getShowRequired, getSimple, renderAllAttributes, renderDisabledAttribute, renderRootDomElementStyles, shouldRenderName
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
detectAutoSubmit, encodeAll, encodeAllAsNonElement, getContentStyle, getDefaultStyleClass, getHiddenLabel, getLabel, getOnblur, getOnchange, getOnfocus, getRendersChildren, isAutoSubmit, renderAsElement, renderEventHandlers, renderReadOnlyAsElement, renderShortDescAsHiddenLabel
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
addOnSubmitConverterValidators, decode, getConvertedString, getDisabled, getReadOnly, getRequired, getSubmittedValue, getValidators, isImmediate, shouldRenderId, wasSubmitted
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
getConverter, getDefaultConverter, getValue, getValueExpression
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
canSkipRendering, canSkipRendering, cloneWithType, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getPartialTriggers, getShortDesc, getStyleClass, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderSubmitButtonNonJSBrowser, renderTransparent, renderVerticalSpacer, resolveProperty, resolveProperty, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNarrowScreen, supportsNavigation, supportsOnClickOnImgInput, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation
 
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
afterEncode, beforeEncode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, encodeEnd, getBehaviorParameters, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, setupChildrenEncodingContext, setupEncodingContext, setupEncodingContext, tearDownChildrenEncodingContext, tearDownEncodingContext, tearDownEncodingContext, toActionUri, toChar, toInt, toLong, toResourceUri, toString, toUri, visitChildrenForEncoding
 
Methods inherited from class javax.faces.render.Renderer
convertClientId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSelectOneRadioRenderer

public SimpleSelectOneRadioRenderer()

SimpleSelectOneRadioRenderer

public SimpleSelectOneRadioRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Method Detail

findTypeConstants

protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Overrides:
findTypeConstants in class SimpleSelectOneRenderer

encodeElementContent

protected void encodeElementContent(javax.faces.context.FacesContext context,
                                    org.apache.myfaces.trinidad.context.RenderingContext rc,
                                    javax.faces.component.UIComponent component,
                                    org.apache.myfaces.trinidad.bean.FacesBean bean,
                                    java.util.List<javax.faces.model.SelectItem> selectItems,
                                    int selectedIndex,
                                    javax.faces.convert.Converter converter,
                                    boolean valuePassThru)
                             throws java.io.IOException
Specified by:
encodeElementContent in class SimpleSelectOneRenderer
Throws:
java.io.IOException

encodeSelectItems

protected void encodeSelectItems(javax.faces.context.FacesContext context,
                                 org.apache.myfaces.trinidad.context.RenderingContext rc,
                                 javax.faces.component.UIComponent component,
                                 org.apache.myfaces.trinidad.bean.FacesBean bean,
                                 java.util.List<javax.faces.model.SelectItem> selectItems,
                                 int selectedIndex,
                                 javax.faces.convert.Converter converter,
                                 boolean valuePassThru)
                          throws java.io.IOException
Throws:
java.io.IOException

encodeSelectItem

protected boolean encodeSelectItem(javax.faces.context.FacesContext context,
                                   org.apache.myfaces.trinidad.context.RenderingContext rc,
                                   javax.faces.component.UIComponent component,
                                   javax.faces.model.SelectItem item,
                                   javax.faces.convert.Converter converter,
                                   boolean valuePassThru,
                                   java.lang.Object accessKey,
                                   int index,
                                   boolean isSelected,
                                   boolean isDisabled,
                                   boolean renderBreak,
                                   java.lang.String itemOnclick)
                            throws java.io.IOException
Throws:
java.io.IOException

renderId

protected void renderId(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Description copied from class: FormInputRenderer
Render the client ID as both an "id" and a "name"

Overrides:
renderId in class FormInputRenderer
Throws:
java.io.IOException

renderFormEventHandlers

protected void renderFormEventHandlers(javax.faces.context.FacesContext context,
                                       javax.faces.component.UIComponent component,
                                       org.apache.myfaces.trinidad.bean.FacesBean bean)
                                throws java.io.IOException
Disable rendering the form event handlers on the parent. In Gecko, they bubble up, but in IE, they don't, so they have to go on the items.

Overrides:
renderFormEventHandlers in class FormElementRenderer
Throws:
java.io.IOException

getOnclick

protected java.lang.String getOnclick(javax.faces.component.UIComponent component,
                                      org.apache.myfaces.trinidad.bean.FacesBean bean)
Disable rendering "onclick" on the parent; it needs to go on the individual radio buttons

Overrides:
getOnclick in class XhtmlRenderer

renderItemFormEventHandlers

protected void renderItemFormEventHandlers(javax.faces.context.FacesContext context,
                                           javax.faces.component.UIComponent component,
                                           org.apache.myfaces.trinidad.bean.FacesBean bean)
                                    throws java.io.IOException
Render the per-item event handlers

Throws:
java.io.IOException

getItemOnclick

protected java.lang.String getItemOnclick(org.apache.myfaces.trinidad.context.RenderingContext rc,
                                          javax.faces.component.UIComponent component,
                                          org.apache.myfaces.trinidad.bean.FacesBean bean)
Get the onclick for the individual radio buttons.


getAccessKey

protected java.lang.Object getAccessKey(javax.faces.component.UIComponent component,
                                        org.apache.myfaces.trinidad.bean.FacesBean bean)

getLayout

protected java.lang.String getLayout(javax.faces.component.UIComponent component,
                                     org.apache.myfaces.trinidad.bean.FacesBean bean)

getUnselectedLabel

protected java.lang.String getUnselectedLabel(javax.faces.component.UIComponent component,
                                              org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getUnselectedLabel in class SimpleSelectOneRenderer

isHiddenLabelRequired

protected boolean isHiddenLabelRequired(org.apache.myfaces.trinidad.context.RenderingContext rc)
Overrides:
isHiddenLabelRequired in class FormElementRenderer

getContentStyleClass

protected java.lang.String getContentStyleClass(javax.faces.component.UIComponent component,
                                                org.apache.myfaces.trinidad.bean.FacesBean bean)
Overrides:
getContentStyleClass in class FormInputRenderer

getRootStyleClass

protected java.lang.String getRootStyleClass(javax.faces.component.UIComponent component,
                                             org.apache.myfaces.trinidad.bean.FacesBean bean)
Specified by:
getRootStyleClass in class FormInputRenderer


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