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

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

public abstract class FormInputRenderer
extends FormElementRenderer


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
protected FormInputRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  java.lang.String getContentStyleClass(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected abstract  java.lang.String getRootStyleClass(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean getShowRequired(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean getSimple(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderAllAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean, boolean renderStyleAttrs)
          used in the form input components for the 'content' piece.
protected  void renderDisabledAttribute(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
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 renderRootDomElementStyles(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Render the styles and style classes that should go on the root dom element.
protected  boolean shouldRenderName(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Returns true if the component should render the ID as a name.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer
detectAutoSubmit, encodeAll, encodeAllAsElement, encodeAllAsNonElement, getContentStyle, getDefaultStyleClass, getHiddenLabel, getLabel, getOnblur, getOnchange, getOnfocus, getRendersChildren, getSubmittedValue, 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, 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, getOnclick, 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

FormInputRenderer

protected FormInputRenderer(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 FormElementRenderer

renderId

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

Overrides:
renderId in class org.apache.myfaces.trinidad.render.CoreRenderer
Throws:
java.io.IOException

shouldRenderName

protected boolean shouldRenderName(javax.faces.context.FacesContext context,
                                   javax.faces.component.UIComponent component)
Returns true if the component should render the ID as a name. By default, don't if the component is readonly.


renderDisabledAttribute

protected void renderDisabledAttribute(javax.faces.context.FacesContext context,
                                       org.apache.myfaces.trinidad.context.RenderingContext rc,
                                       javax.faces.component.UIComponent component,
                                       org.apache.myfaces.trinidad.bean.FacesBean bean)
                                throws java.io.IOException
Throws:
java.io.IOException

renderAllAttributes

protected void renderAllAttributes(javax.faces.context.FacesContext context,
                                   org.apache.myfaces.trinidad.context.RenderingContext rc,
                                   javax.faces.component.UIComponent component,
                                   org.apache.myfaces.trinidad.bean.FacesBean bean,
                                   boolean renderStyleAttrs)
                            throws java.io.IOException
used in the form input components for the 'content' piece.

Overrides:
renderAllAttributes in class XhtmlRenderer
Parameters:
context -
rc -
bean -
renderStyleAttrs, - whether to render the styleClass/inlineStyle attribute values on the 'content' piece. This is usually false.
Throws:
java.io.IOException

getSimple

protected boolean getSimple(javax.faces.component.UIComponent component,
                            org.apache.myfaces.trinidad.bean.FacesBean bean)

renderRootDomElementStyles

protected void renderRootDomElementStyles(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
Render the styles and style classes that should go on the root dom element. (called from LabelAndMessageRenderer, the superclass)

Parameters:
context -
arc -
component -
bean -
Throws:
java.io.IOException

getContentStyleClass

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

getRootStyleClass

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

getShowRequired

protected boolean getShowRequired(javax.faces.component.UIComponent component,
                                  org.apache.myfaces.trinidad.bean.FacesBean bean)


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