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

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.LabelAndMessageRenderer
                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
Direct Known Subclasses:
InputColorRenderer, InputDateRenderer, InputFileRenderer, InputListOfValuesRenderer, InputNumberSpinboxRenderer, InputTextRenderer, SelectBooleanCheckboxRenderer, SelectBooleanRadioRenderer, SelectManyCheckboxRenderer, SelectManyListboxRenderer, SelectOneChoiceRenderer, SelectOneListboxRenderer, SelectOneRadioRenderer

public abstract class InputLabelAndMessageRenderer
extends LabelAndMessageRenderer


Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer
INLINE_MESSAGE_DEFAULT_GAP, INLINE_MESSAGE_PDA_GAP
 
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 InputLabelAndMessageRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean facesBean, java.lang.String clientId)
           
protected  void encodeAll(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 findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object submittedValue)
           
protected abstract  FormInputRenderer getFormInputRenderer()
           
protected  java.lang.String getLabelFor(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Returns the ID (clientId) of the component that should receive the label.
protected  boolean getSimple(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean isContentEditable(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          If it's known that the field content is not editable, return false.
protected  boolean isDisabled(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean isReadOnly(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderFieldCellContents(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 renderRootDomElementStyles(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, 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.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer
getClientId, getDefaultLabelValign, getFieldCellContentsStyleClass, getFooterContentsStyleClass, getLabel, getLabelInlineStyleKey, getLabelStyleClass, getRendersChildren, getRequired, getRootStyleClass, getShowRequired, hasMessage, hasOwnLabel, isIndented, isLeafRenderer, labelShowRequired, renderEndFacetForNarrowPDA, renderFieldFooterContents, shouldRenderId, showAccessKeyOnLabel
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
canSkipRendering, canSkipRendering, cloneWithType, getAbsoluteImageUri, getBaseImageUri, getDefaultStyleClass, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getPartialTriggers, getShortDesc, getStyleClass, renderAllAttributes, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderEventHandlers, 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, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderId, 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

InputLabelAndMessageRenderer

protected InputLabelAndMessageRenderer(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 LabelAndMessageRenderer

decode

protected void decode(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent component,
                      org.apache.myfaces.trinidad.bean.FacesBean facesBean,
                      java.lang.String clientId)
Overrides:
decode in class org.apache.myfaces.trinidad.render.CoreRenderer

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component,
                                          java.lang.Object submittedValue)
Overrides:
getConvertedValue in class javax.faces.render.Renderer

getLabelFor

protected java.lang.String getLabelFor(javax.faces.context.FacesContext context,
                                       org.apache.myfaces.trinidad.context.RenderingContext rc,
                                       javax.faces.component.UIComponent component,
                                       org.apache.myfaces.trinidad.bean.FacesBean bean)
Description copied from class: LabelAndMessageRenderer
Returns the ID (clientId) of the component that should receive the label.

Specified by:
getLabelFor in class LabelAndMessageRenderer

encodeAll

protected void encodeAll(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
Overrides:
encodeAll in class LabelAndMessageRenderer
Throws:
java.io.IOException

isContentEditable

protected boolean isContentEditable(javax.faces.component.UIComponent component,
                                    org.apache.myfaces.trinidad.bean.FacesBean bean)
If it's known that the field content is not editable, return false. Otherwise, assume it is editable and return true

Overrides:
isContentEditable in class LabelAndMessageRenderer

renderFieldCellContents

protected void renderFieldCellContents(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
Specified by:
renderFieldCellContents in class LabelAndMessageRenderer
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 rc,
                                          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)

Overrides:
renderRootDomElementStyles in class LabelAndMessageRenderer
Parameters:
context -
rc -
component -
bean -
Throws:
java.io.IOException

isDisabled

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

isReadOnly

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

getFormInputRenderer

protected abstract FormInputRenderer getFormInputRenderer()


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