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

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.PanelLabelAndMessageRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer

public class PanelLabelAndMessageRenderer
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
PanelLabelAndMessageRenderer()
           
 
Method Summary
protected  javax.faces.component.UIComponent findForComponent(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          In the event that the #getFor(FacesBean) returns null, this class finds the first child that implements EditableValueHolder
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  java.lang.String getFor(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
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  java.lang.String getLabelInlineStyleKey(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getRootStyleClass(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean isLeafRenderer()
           
protected  boolean labelShowRequired(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Hook for resolving whether we should show the "required" icon.
protected  void renderEndFacetForNarrowPDA(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, boolean insideTableData)
           
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)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer
encodeAll, getClientId, getDefaultLabelValign, getFieldCellContentsStyleClass, getFooterContentsStyleClass, getLabel, getLabelStyleClass, getRendersChildren, getRequired, getShowRequired, hasMessage, hasOwnLabel, isContentEditable, isIndented, renderFieldFooterContents, renderRootDomElementStyles, 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, 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, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelLabelAndMessageRenderer

public PanelLabelAndMessageRenderer()
Method Detail

findTypeConstants

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

labelShowRequired

protected boolean labelShowRequired(javax.faces.component.UIComponent component,
                                    org.apache.myfaces.trinidad.bean.FacesBean bean)
Description copied from class: LabelAndMessageRenderer
Hook for resolving whether we should show the "required" icon.

Overrides:
labelShowRequired in class LabelAndMessageRenderer

isLeafRenderer

protected boolean isLeafRenderer()
Overrides:
isLeafRenderer in class LabelAndMessageRenderer

getRootStyleClass

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

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

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

getFor

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

getLabelInlineStyleKey

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

findForComponent

protected javax.faces.component.UIComponent findForComponent(javax.faces.context.FacesContext context,
                                                             org.apache.myfaces.trinidad.context.RenderingContext arc,
                                                             javax.faces.component.UIComponent component,
                                                             org.apache.myfaces.trinidad.bean.FacesBean bean)
In the event that the #getFor(FacesBean) returns null, this class finds the first child that implements EditableValueHolder

Parameters:
context -
arc -
component -
bean -
Returns:

renderEndFacetForNarrowPDA

protected void renderEndFacetForNarrowPDA(javax.faces.context.FacesContext context,
                                          org.apache.myfaces.trinidad.context.RenderingContext rc,
                                          javax.faces.component.UIComponent component,
                                          boolean insideTableData)
                                   throws java.io.IOException
Overrides:
renderEndFacetForNarrowPDA in class LabelAndMessageRenderer
Throws:
java.io.IOException


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