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

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.SimpleSelectBooleanRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
Direct Known Subclasses:
SimpleSelectBooleanCheckboxRenderer, SimpleSelectBooleanRadioRenderer

public abstract class SimpleSelectBooleanRenderer
extends FormInputRenderer


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
SimpleSelectBooleanRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void encodeAllAsElement(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void encodeAllAsNonElement(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  char getAccessKey(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getAutoSubmitScript(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getCompositeId(java.lang.String clientId)
           
protected abstract  java.lang.String getIconAltTextName(boolean selected)
           
protected abstract  java.lang.String getIconName(boolean selected, boolean disabled)
           
protected  boolean getRenderSimpleSpan(org.apache.myfaces.trinidad.bean.FacesBean bean)
          return true if you want to render the span that goes around the simple element, where we put the root dom element styles.
protected  java.lang.String getText(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected abstract  java.lang.Object getType()
           
protected abstract  java.lang.Object getValueAttr(org.apache.myfaces.trinidad.context.RenderingContext arc)
           
protected  boolean isRadio()
           
protected  void renderAccessKeyAttribute(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderInputEventHandlers(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderNameAttribute(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderSpanEventHandlers(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderText(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean, boolean renderAccessKeys, boolean renderID, java.lang.String text, char accessKey)
          Renders the node text
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormInputRenderer
getContentStyleClass, getRootStyleClass, getShowRequired, getSimple, renderAllAttributes, renderDisabledAttribute, renderId, renderRootDomElementStyles, shouldRenderName
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
encodeAll, getContentStyle, getDefaultStyleClass, getHiddenLabel, getLabel, getOnblur, getOnchange, getOnfocus, getRendersChildren, isAutoSubmit, isHiddenLabelRequired, renderAsElement, renderEventHandlers, renderFormEventHandlers, renderNonElementContent, renderReadOnlyAsElement, renderShortDescAsHiddenLabel
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer
addOnSubmitConverterValidators, decode, getConvertedString, getConvertedValue, getDisabled, getReadOnly, getRequired, getRequiredMessageKey, getSubmittedValue, getSubmittedValue, getValidators, isImmediate, shouldRenderId, wasSubmitted
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer
getConverter, getDefaultConverter, getValue, getValueBinding
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getShortDesc, getStyleClass, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderTransparent, renderVerticalSpacer, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNavigation, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation, supportsXMLDOM
 
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeEnd, encodeEnd, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isIE, isInaccessibleMode, isPDA, isScreenReaderMode, renderEncodedActionURI, renderEncodedResourceURI, renderStyleClass, renderStyleClasses, setRenderingProperty, toChar, toInt, toLong, toString, toUri
 
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

SimpleSelectBooleanRenderer

public SimpleSelectBooleanRenderer(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 FormInputRenderer

getValueAttr

protected abstract java.lang.Object getValueAttr(org.apache.myfaces.trinidad.context.RenderingContext arc)

getType

protected abstract java.lang.Object getType()

getIconName

protected abstract java.lang.String getIconName(boolean selected,
                                                boolean disabled)

getIconAltTextName

protected abstract java.lang.String getIconAltTextName(boolean selected)

renderNameAttribute

protected void renderNameAttribute(javax.faces.context.FacesContext context,
                                   org.apache.myfaces.trinidad.context.RenderingContext arc,
                                   org.apache.myfaces.trinidad.bean.FacesBean bean)
                            throws java.io.IOException
Throws:
java.io.IOException

encodeAllAsElement

protected void encodeAllAsElement(javax.faces.context.FacesContext context,
                                  org.apache.myfaces.trinidad.context.RenderingContext arc,
                                  javax.faces.component.UIComponent component,
                                  org.apache.myfaces.trinidad.bean.FacesBean bean)
                           throws java.io.IOException
Overrides:
encodeAllAsElement in class FormElementRenderer
Throws:
java.io.IOException

encodeAllAsNonElement

protected void encodeAllAsNonElement(javax.faces.context.FacesContext context,
                                     org.apache.myfaces.trinidad.context.RenderingContext arc,
                                     javax.faces.component.UIComponent component,
                                     org.apache.myfaces.trinidad.bean.FacesBean bean)
                              throws java.io.IOException
Overrides:
encodeAllAsNonElement in class FormElementRenderer
Throws:
java.io.IOException

renderSpanEventHandlers

protected void renderSpanEventHandlers(javax.faces.context.FacesContext context,
                                       org.apache.myfaces.trinidad.bean.FacesBean bean)
                                throws java.io.IOException
Throws:
java.io.IOException

renderInputEventHandlers

protected void renderInputEventHandlers(javax.faces.context.FacesContext context,
                                        org.apache.myfaces.trinidad.bean.FacesBean bean)
                                 throws java.io.IOException
Throws:
java.io.IOException

renderAccessKeyAttribute

protected void renderAccessKeyAttribute(javax.faces.context.FacesContext context,
                                        org.apache.myfaces.trinidad.context.RenderingContext arc,
                                        org.apache.myfaces.trinidad.bean.FacesBean bean)
                                 throws java.io.IOException
Throws:
java.io.IOException

renderText

protected void renderText(javax.faces.context.FacesContext context,
                          org.apache.myfaces.trinidad.context.RenderingContext arc,
                          javax.faces.component.UIComponent component,
                          org.apache.myfaces.trinidad.bean.FacesBean bean,
                          boolean renderAccessKeys,
                          boolean renderID,
                          java.lang.String text,
                          char accessKey)
                   throws java.io.IOException
Renders the node text

Throws:
java.io.IOException

getAutoSubmitScript

protected java.lang.String getAutoSubmitScript(org.apache.myfaces.trinidad.bean.FacesBean bean)

isRadio

protected boolean isRadio()

getCompositeId

protected java.lang.String getCompositeId(java.lang.String clientId)

getText

protected java.lang.String getText(org.apache.myfaces.trinidad.bean.FacesBean bean)

getAccessKey

protected char getAccessKey(org.apache.myfaces.trinidad.bean.FacesBean bean)

getRenderSimpleSpan

protected boolean getRenderSimpleSpan(org.apache.myfaces.trinidad.bean.FacesBean bean)
return true if you want to render the span that goes around the simple element, where we put the root dom element styles.



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.